Sfoglia il codice sorgente

Fix warnings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67518 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 9 anni fa
parent
commit
982d20cbe9
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 1
      raster/r.mapcalc/mapcalc.l
  2. 2 2
      raster/r.mapcalc/mapcalc.y

+ 1 - 1
raster/r.mapcalc/mapcalc.l

@@ -215,7 +215,7 @@ F		[fF]
 
 
 .		{
-			fprintf(stderr, "syntax error: '%*s'\n", yyleng, yytext);
+			fprintf(stderr, "syntax error: '%*s'\n", (int) yyleng, yytext);
 			yyterminate();
 		}
 %%

+ 2 - 2
raster/r.mapcalc/mapcalc.y

@@ -75,7 +75,7 @@ static expr_list *result;
 extern int yylex(void);
 
 int yyparse(void);
-void yyerror(char *s);
+void yyerror(const char *s);
 
 %}
 
@@ -237,7 +237,7 @@ void syntax_error(const char *fmt, ...)
 	syntax_error_occurred = 1;
 }
 
-void yyerror(char *s)
+void yyerror(const char *s)
 {
 	fprintf(stderr, "%s\n", s);
 	syntax_error_occurred = 0;