[GCC 3.0] New -Wall warnings without corresponding option toturn off

Joseph S. Myers jsm28@cam.ac.uk
Wed Jul 4 15:25:00 GMT 2001


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



More information about the Gcc-bugs mailing list