This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53603] abs() doesn't warn if argument is double, not even with -Wall -Wextra
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 Jun 2012 14:56:25 +0000
- Subject: [Bug c/53603] abs() doesn't warn if argument is double, not even with -Wall -Wextra
- Auto-submitted: auto-generated
- References: <bug-53603-4@http.gcc.gnu.org/bugzilla/>
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