[GRASS-dev] r.mapcalc: warning: field width should have type 'int', but argument has type 'yy_size_t'
Markus Neteler
neteler at osgeo.org
Wed Dec 30 07:15:06 PST 2015
Hi,
compiling relbranch70 (likely the same on trunk), I got
mapcalc.tab.c:1995:18: warning: passing 'const char *' to parameter of
type 'char *' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
yyerror (yymsgp);
^~~~~~
mapcalc.y:78:20: note: passing argument to parameter 's' here
void yyerror(char *s);
^
mapcalc.l:218:38: warning: field width should have type 'int', but
argument has type 'yy_size_t' (aka 'unsigned long') [-Wformat]
fprintf(stderr, "syntax error: '%*s'\n",
yyleng, yytext);
~~^ ~~~~~~
1 warning generated.
1 warning generated.
Not sure if and how to fix that.
Markus
More information about the grass-dev
mailing list