[Bug middle-end/78044] -Wmaybe-uninitialized and -O2: false positive with boost::optional
akrzemi1 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 20 06:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78044
Andrzej Krzemienski <akrzemi1 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |akrzemi1 at gmail dot com
--- Comment #3 from Andrzej Krzemienski <akrzemi1 at gmail dot com> ---
"which is why the option was split into two."
Ok, it makes sense to have one reliable option that handles fewer cases, but
doesn't have false positives. And another that checks more, but with false
positives. The only problem I have with -Wmaybe-uninitialized is that it is
included in -Wall. I thought that -Wall was meant to collect the warnings
without false positives?
Would it be possible not to turn -Wmaybe-uninitialized on when -Wall is turned
on?
More information about the Gcc-bugs
mailing list