This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: -Wall by default


On 4/9/2012 1:08 PM, Gabriel Dos Reis wrote:
On Mon, Apr 9, 2012 at 11:29 AM, Gerald Pfeifer<gerald@pfeifer.com> wrote:
On Sun, 8 Apr 2012, Robert Dewar wrote:
Do you really want me to file hundreds of bug reports that are for
cases of uninitialized variables well known to everyone, and well
understood by everyone, and not easy to fix (or would have been
fixed long ago)?

Perhaps we should move this class of warning from -Wall to -Wextra?


(I'd prefer that over introducing yet another option -Wstandard.)

That would be my preferred solution -- by far. But, my understanding is that that would provoke a riot so I am willing to compromise by introducing a new warning switch (even if I dislike that thought.) Hopefully, it is it is going to be the default, most people would not have to learn yet another GCC switch.

I would not like to see -Wall lose warnings that it has now, and I think others would find that a problme. -Wextra may be too much for that same group of people.

We have certainly found it useful to have three general categories of
warnings in GNAT

a) the warnings that are on by default
b) the warnings that are turned on by -gnatWa (similar to -Wall)
c) all warnings (tunred on by -gnatw.e)



Gerald


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]