Neale Ferguson <ne...@sinenomine.net> wrote:

> Not true for the `beyond' part: while gcc 4.4 unconditionally warns
> about #ident
>
> $ cat ident.c
> #ident "lets see what happens"
> $ gcc-4.4 -c ident.c
> ident.c:1:2: warning: #ident is a deprecated GCC extension

Before it did become a GCC extension, it was a Sun C extension ;-)

The problem with GCC-4.4 is that it cannot be called ANSI C compliant.
I did e.g. not jet find a way to prevent a warning for this line:

        (void)write(1, "Test" 4);

which is 100% correct and even marks the return value as out of interest
but this fact is ignored by gcc.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to