Is -Wall the Automatically Provided Default?

Tim Prince tprince@myrealbox.com
Wed Feb 7 21:54:00 GMT 2007


Carbonaro, Tony wrote:
> Folks, 
>
> Sorry, basic question I know...
>
> 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.
>
> 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".
>
>
>   
Without -Wall, or stricter checking options such as -pedantic, gcc will 
not issue any warnings to speak of.  Many people insist on more 
diagnostics than just -Wall for QA.



More information about the Gcc-help mailing list