This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc warning
- To: mrs at windriver dot com (Mike Stump)
- Subject: Re: gcc warning
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Tue, 31 Oct 2000 11:29:23 -0800 (PST)
- Cc: aoliva at redhat dot com, gcc at gcc dot gnu dot org, jching at flex dot com
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.