This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: -Wall by default
On Thu, Apr 5, 2012 at 5:04 AM, Arnaud Charlet <charlet@adacore.com> wrote:
>> The simpler requests are -Wall by default. ?(there are some occasional
>> -pedantic).
>>
>> The ones I've heard in person -- with the requesters quite competent and
>> respectable programmers -- are in less polite words what I can possibly
>> convey in this discussion. ?Adding more options isn't on the top of the list
>> (to quote "I can't go through the 10000 options to figure out which ones
>> will work for something this obvious that should be done by default.")
>
> Could you give some examples of which warnings these people were
> expecting to be "obviously enabled by default" ?
From the list I gave earlier:
-Wformat
-Wimplicit
-Wreturn-type
-Wsequence-point
-Wswitch
-Waddress
-Wstrict-aliasing
-Wenum-compare
-Wreorder
-Wpointer-sign
>
> I think that would be helpful.
>
> BTW, I don't think -pedantic should be enabled by default, or this wouldn't
> be "pedantic" anymore.
I am not proposing that in this discussion. I was answering a question.
-- Gaby