Mike Castle wrote:
>
> There was recent discussion on linux-kernel regarding recent changes in
> gcc (yet unreleased 2.96, I believe) that flags trigraphs as warnings
> even when -trigraphs is not enabled. Specifically, inside of comments.
>
> Well, gcc is not the first to do this. Just got this happy little
> warning on an NCR system:
>
> cc -I. -I.. -I. -I../lib -DHAVE_CONFIG_H -c login.c
> NCR High Performance C Compiler R3.0c
> (c) Copyright 1994-97, NCR Corporation
> (c) Copyright 1987-97, MetaWare Incorporated
> w "login.c",L54/C46(#684):
> | Trigraph "??)" detected but not replaced; turn on TRIGRAPHS toggle.
> No errors 1 warning
> passwords in the registry or something (??). And .cvsrc
Yes, I've encountered this many times with Metaware as well. Its a
trivial matter to change the comments to make the compiler happy, which
is good for portability as well.
> (Personally, I'd recommend removing the offending items,
> just to enforce good programming skills. Just because the kernel may
> use gcc extensions, it would not be a bad idea to keep such things to
> a minimum so as less likely to slip into using those things on other
> projects.
I agree for several reasons. Its really no big deal to fix these silly
things...
peace-
ron
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:17 EST