This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/44210] Extended warning control: like -Wevery -show-warnings
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2010 16:14:59 -0000
- Subject: [Bug other/44210] Extended warning control: like -Wevery -show-warnings
- References: <bug-44210-19151@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from redi at gcc dot gnu dot org 2010-05-20 16:14 -------
(In reply to comment #2)
> > -W is a synonym for -Wextra, so it is pointless to use both
> This perfectly illustrates the problem; I have already spend hours digging
Then I have misunderstood the problem. How does this illustrate it?
> into the manual, what I attempted was to have as much warnings as possible.
How does adding the redundant -W help get more warnings if you already have
-Wextra?
> > The manual fairly clearly documents what controls what
> I know perfectly. Consider 3-4 platforms, 2-3 versions of gcc, and you
> wouldn't want to rely on the manual to have a clear overview of what happens
> exactly on your build, with a specific file, with your options !
I don't understand what you mean here.
You said you never know what is enabled by -Wall or -Wextra, I pointed out the
manual explains it.
It is quite rare for a -W option to be moved in or out of the -Wall set, so it
doesn't vary between versions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44210