This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][gdb] Fix -Wparentheses warnings


On 05/02/2016 11:57 AM, Pedro Alves wrote:
> On 04/29/2016 04:26 PM, Kyrill Tkachov wrote:

> Bah.  That's written that way exactly to avoid dangling if/else
> problems.
> 
> I think it'd be reasonable for gcc to not warn when the if/else
> came from a macro, as users of the macro can't possibly be confused
> in the way the warning intents to help with.  I'd call it a
> gcc regression.
> 

...

>> Is this ok to commit?
> 
> OK.


I suspect this may be the same as PR20029:

 https://sourceware.org/bugzilla/show_bug.cgi?id=20029

Could you push it to the gdb-7.11-branch branch too, please?

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]