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]

Re: gcc warning


Mike Stump writes:

> I say we banish the warning.  I think they should only come on when
> asked for, and that -Wall not turn them on.
> 
> [ minute pause to check C standard ]
> 
> Actually, the C9X standard I think reworded the minimums to the same
> in spirit to the C++ Standard.  I think we should migrate to the
> default language being C99, not C89 and then the warning just goes
> away.

I think that the right answer is to enable the warning only if -pedantic
is specified and the standard being checked against is C89 (currently
the default for C).  When C99 support is good enough, then we would switch
the default standard to C99, and the user would only see the warning
if
	-std=c89 -pedantic

is specified.  The idea would be that we get really nitpicky only if
the user really asks for it.




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