[Bug c/64279] Warning missing for "(cond) ? A : A" / if(cond) expr1; else expr1; // same expression in if and else branch
bernd.edlinger at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Sat Sep 10 17:06:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64279
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernd.edlinger at hotmail dot de
--- Comment #2 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Yes. I had also thought in the same direction for the Wint-in-bool-context...
It may be good not to warn here, if both branches are in fact different
macros that expand to the same expressions, say, they may depend on
configure options, and are trivial on one target only.
More information about the Gcc-bugs
mailing list