[Bug middle-end/60725] [-Wreturn-type] false positive in trivial switch
jens.auer at cgi dot com
gcc-bugzilla@gcc.gnu.org
Fri Sep 4 15:26:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60725
Jens Auer <jens.auer at cgi dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jens.auer at cgi dot com
--- Comment #2 from Jens Auer <jens.auer at cgi dot com> ---
This warnings becomes annoying when you also compile with -Wswitch-enum which
forces you to cover all enum values. When they are all covered, I do not need a
default statement, but to prevent Wreturn-type, I have to add a pseudo-default.
More information about the Gcc-bugs
mailing list