This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [GCC 3.0] New -Wall warnings without corresponding option toturn off
- To: <Marc dot Espie at liafa dot jussieu dot fr>
- Subject: Re: [GCC 3.0] New -Wall warnings without corresponding option toturn off
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Wed, 4 Jul 2001 23:25:00 +0100 (BST)
- cc: <gcc-bugs at gcc dot gnu dot org>
On Wed, 4 Jul 2001, Marc Espie wrote:
> At least two such warnings are a problem:
> /spare/src/sys/arch/i386/isa/npx.c:155:6: multi-line string literals are
> deprecated
> /spare/src/sys/net/if_loop.c:300:8: extra tokens at end of #endif directive
These aren't -Wall warnings - they are mandatory warnings since those
usages are a sufficiently bad idea that no programs should be using them.
I think the plan is to remove multi-line string literals altogether in
3.1.
The deprecation of multi-line string literals is noted in caveats.html.
The other warning is probably best considered a bug fix - GCC should have
complained about this usage, but previously failed to do so except with
-pedantic.
(Even where code isn't intended to be strictly conforming, compiling with
-pedantic from time to time - which would have shown up these problems -
is probably a good idea. There's a lot of other junk GCC accepts and only
warns about with -pedantic, for which the warnings should probably be
unconditional instead.)
--
Joseph S. Myers
jsm28@cam.ac.uk