patch: add -Wno-overlength-strings

Zack Weinberg zackw@panix.com
Fri Jan 27 07:24:00 GMT 2006


On Thu, Jan 26, 2006 at 11:37:33PM -0500, Andrew Pinski wrote:
> 
> On Jan 26, 2006, at 11:30 PM, Zack Weinberg wrote:
> >I also switched gengtype-lex.o from -Wno-error to 
> >-Wno-missing-prototypes;
> >this suppresses all the harmless warnings from flex's boilerplate.
> I get a different warning rather than the missing prototypes warnings:
> /usr/share/bison.simple: In function `yyparse':
> /usr/share/bison.simple:614: warning: comparison between signed and 
> unsigned
> /usr/share/bison.simple:626: warning: comparison between signed and 
> unsigned
> This comes from GNU Bison version 1.28.

That's gengtype-yacc.o, not gengtype-lex.o.  Do you still get warnings
for gengtype-lex.o?

However, this answers the question 'can we get rid of the -Wno-error
for gengtype-yacc.o' in the negative; sad, but nice to know.

zw



More information about the Gcc-patches mailing list