[Bug c/53603] abs() doesn't warn if argument is double, not even with -Wall -Wextra

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 7 14:56:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53603

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-07 14:56:25 UTC ---
(In reply to comment #3)
> 1. It seems a bit strange to me that there are warnings that are not enabled by 
> -Wall -Wextra. The man page lists so many different types of warning: perhaps
> it would be useful to mention (under -Wextra) which ones it does *not* enable?

Such a list would almost certainly get out of date when warning options are
added (there are already several places that need to be updated for a new
warning) and if it's not complete it's not very useful.  However, if you want
to compile the list and propose a doc patch please send it to
gcc-patches@gcc.gnu.org

> Or maybe it would be worthwhile adding something like "-Wkitchensink" to mean:
> yes, really do turn on all the warnings (except maybe for pedantic). 

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31573



More information about the Gcc-bugs mailing list