diff options
Diffstat (limited to 'dev-util/ragel/files/ragel-6.5+gcc-4.4.patch')
-rw-r--r-- | dev-util/ragel/files/ragel-6.5+gcc-4.4.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-util/ragel/files/ragel-6.5+gcc-4.4.patch b/dev-util/ragel/files/ragel-6.5+gcc-4.4.patch new file mode 100644 index 000000000000..131b05d04f01 --- /dev/null +++ b/dev-util/ragel/files/ragel-6.5+gcc-4.4.patch @@ -0,0 +1,22 @@ +diff --git a/ragel/main.cpp b/ragel/main.cpp +index a16a50a..13d0152 100644 +--- a/ragel/main.cpp ++++ b/ragel/main.cpp +@@ -336,7 +336,7 @@ void processArgs( int argc, const char **argv, InputData &id ) + printStatistics = true; + break; + case '-': { +- char *eq = strchr( pc.paramArg, '=' ); ++ char *eq = const_cast<char *>(strchr( pc.paramArg, '=' )); + + if ( eq != 0 ) + *eq++ = 0; +@@ -507,7 +507,7 @@ char *makeIntermedTemplate( const char *baseFileName ) + { + char *result = 0; + const char *templ = "ragel-XXXXXX.xml"; +- char *lastSlash = strrchr( baseFileName, '/' ); ++ const char *lastSlash = strrchr( baseFileName, '/' ); + if ( lastSlash == 0 ) { + result = new char[strlen(templ)+1]; + strcpy( result, templ ); |