This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is -Wall the Automatically Provided Default?
- From: Andrew Haley <aph at gcc dot gnu dot org>
- To: "Carbonaro, Tony" <tony dot carbonaro at lmco dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 7 Feb 2007 18:49:36 +0000
- Subject: Re: Is -Wall the Automatically Provided Default?
- References: <3D92CA467E530B4E8295214868F840FE0CC9F1C0@emss01m12.us.lmco.com>
Carbonaro, Tony writes:
> We have a conflict here at work. Our SQA says that, when using gcc,
> you have to specify warnings be used (i.e. -Wall). SQA says that if
> you do not specify any warnings at compile time, then you won't get
> any - except of course, in the case of actual errors which prevent
> successful compile/link.
No, that is not true. Some warnings are on by default. Most aren't.
> Others say that -Wall is the default. You don't even have to ask
> for it, you just get it automatically. Essentially, their position
> is that "gcc buildme.cpp" is the exact same thing as "gcc -Wall
> buildme.cpp".
No, that is not true either. -Wall isn't the default. -Wall produces
a lot of extra warnings.
Andrew.