This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc warning
- To: ghazi at caip dot rutgers dot edu (Kaveh R. Ghazi)
- Subject: Re: gcc warning
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Wed, 1 Nov 2000 09:03:46 -0800 (PST)
- Cc: aoliva at redhat dot com, gcc at gcc dot gnu dot org, gdr at codesoucery dot com, jching at flex dot com, mrs at windriver dot com
> The warning is already controlled by -pedantic, it's not activated by
> -Wall or on by default. So I don't understand all the flag fuss. :-)
Then it's already right, I withdraw my fuss. I misunderstood the original
report. It's fine for -pedantic to warn about anything that might not
be compilable by a standard compiler.
> The issue, as I see it, is what to do >>when compiling C++ code<<.
If you're going to check the string length for standards conformance, you
should use the limit specified in the standard being checked against.