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 to turn off
On Wed, Jul 04, 2001 at 11:25:00PM +0100, Joseph S. Myers wrote:
> 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.)
I remember reading about this in conjunction with extended asm... which is
precisely where the warnings occur.
I believe that you are going to have a very hard time convincing people
to switch to gcc 3.0 because of these... this was the plan, wasn't it ?
I know I will have a *very* hard time convincing the OpenBSD team to
switch (just for extended asm, mind you).
The other warning is not that dire, and in fact, is getting fixed as I
speak.