File graphthing-build-gcc.patch of Package graphthing
Index: graphthing-1.3.2/src/gt-bison.y
===================================================================
--- graphthing-1.3.2.orig/src/gt-bison.y
+++ graphthing-1.3.2/src/gt-bison.y
@@ -18,7 +18,7 @@ Edge *e;
extern char *yy_gt_text;
-int yy_gt_error (char *s);
+int yy_gt_error (const char *s);
int yy_gt_lex (void);
%}
@@ -132,7 +132,7 @@ edge_property:
%%
-int yy_gt_error (char *s)
+int yy_gt_error (const char *s)
{
fprintf (stderr, "gt-parse: %s in line %i, at symbol \"%s\"\n",
s, gt_lineno, yy_gt_text);
Index: graphthing-1.3.2/src/lang-bison.y
===================================================================
--- graphthing-1.3.2.orig/src/lang-bison.y
+++ graphthing-1.3.2/src/lang-bison.y
@@ -15,7 +15,7 @@ int lang_lineno = 1;
std::stack<PhraseBlock *> pbs;
-int yy_lang_error (char *s);
+int yy_lang_error (const char *s);
int yy_lang_lex (void);
%}
@@ -121,7 +121,7 @@ phrase:
extern char *yy_lang_text;
-int yy_lang_error (char *s)
+int yy_lang_error (const char *s)
{
fprintf (stderr, "lang-parse: %s in line %i, at symbol \"%s\"\n",
s, lang_lineno, yy_lang_text);