[GRASS-SVN] r67518 - grass/trunk/raster/r.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 7 09:45:51 PST 2016
Author: glynn
Date: 2016-01-07 09:45:51 -0800 (Thu, 07 Jan 2016)
New Revision: 67518
Modified:
grass/trunk/raster/r.mapcalc/mapcalc.l
grass/trunk/raster/r.mapcalc/mapcalc.y
Log:
Fix warnings
Modified: grass/trunk/raster/r.mapcalc/mapcalc.l
===================================================================
--- grass/trunk/raster/r.mapcalc/mapcalc.l 2016-01-07 17:42:29 UTC (rev 67517)
+++ grass/trunk/raster/r.mapcalc/mapcalc.l 2016-01-07 17:45:51 UTC (rev 67518)
@@ -215,7 +215,7 @@
. {
- fprintf(stderr, "syntax error: '%*s'\n", yyleng, yytext);
+ fprintf(stderr, "syntax error: '%*s'\n", (int) yyleng, yytext);
yyterminate();
}
%%
Modified: grass/trunk/raster/r.mapcalc/mapcalc.y
===================================================================
--- grass/trunk/raster/r.mapcalc/mapcalc.y 2016-01-07 17:42:29 UTC (rev 67517)
+++ grass/trunk/raster/r.mapcalc/mapcalc.y 2016-01-07 17:45:51 UTC (rev 67518)
@@ -75,7 +75,7 @@
extern int yylex(void);
int yyparse(void);
-void yyerror(char *s);
+void yyerror(const char *s);
%}
@@ -237,7 +237,7 @@
syntax_error_occurred = 1;
}
-void yyerror(char *s)
+void yyerror(const char *s)
{
fprintf(stderr, "%s\n", s);
syntax_error_occurred = 0;
More information about the grass-commit
mailing list