This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc warning
- To: Joe Buck <jbuck at racerx dot synopsys dot com>
- Subject: Re: gcc warning
- From: Gabriel Dos Reis <gdr at codesoucery dot com>
- Date: 31 Oct 2000 20:23:41 +0100
- Cc: aoliva at redhat dot com (Alexandre Oliva), jching at flex dot com (Jimen Ching), gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200010311857.KAA08354@racerx.synopsys.com>
Joe Buck <jbuck@racerx.synopsys.com> writes:
| On Oct 31, 2000, Jimen Ching <jching@flex.com> wrote:
| >
| > > I got this warning with latest CVS. How do I fix my code so it does not
| > > appear?
|
| Alexandre Oliva writes:
| > Use shorter literal strings.
|
| Right, but this begs the question of when this warning should be enabled:
| by default, with -Wall, etc.
|
| A user trying to check her program for maximum portability will
| supply flags like -ansi -pedantic; in that case the warning should
| be produced. But I'm not sure that it should be produced by default
| or even with -Wall.
Well, I'll put in my two cents.
It is my opinion that that warning should not be on by default, nor
implied by -Wall. It is just pedantically annoying.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com