Re: strange warning with -Wparentheses

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

 



On 13 December 2010 09:34, andre maute  wrote:
>
> sorry, the spaces got lost, but is ambiguous the correct
> wording here? it doesn't result in undefined behavior.
> the else couples always with the inner if

It's unambiguous to the compiler, but not necessarily to someone
reading the code. Which is exactly the same as the example in the
documentation.

-Wparentheses is not about diagnosing undefined behaviour, it's for
identifying confusing code which could be misinterpreted by someone
reading it.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux