bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {maint} yacc.c: initialize yylval in pure-parser mode


From: Akim Demaille
Subject: Re: {maint} yacc.c: initialize yylval in pure-parser mode
Date: Sat, 6 Oct 2012 19:46:38 +0200

Le 5 oct. 2012 à 19:55, Paul Eggert a écrit :

> I looked into the matter further, and it turns out that
> GCC has two classes of warnings in this area, -Wuninitialized
> and -Wmaybe-uninitialized.  It's the latter that are causing
> trouble, and initializing yylval suppresses them; but it
> also suppresses the trouble-free warnings, which is undesirable.
> 
> So, how about the following idea instead?  It follows
> your suggestion for random compilers, but for new-enough GCC it
> simply disables the bogus warning directly.  This should cause
> recent GCC to issue a warning for my most-recent test grammar
> (which is what we prefer) while not issuing warnings for the
> cases where warnings are bothering people.

Good with me!  Please, install in maint (not master, I'll
merge later).

Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]