Neale Ferguson <[email protected]> writes:
> gcc 4.4 and beyond flags #ident as deprecated and issues a warning. For files
> being compiled with the flag that says "treat warnings as errors" means
> builds come to a stop. I am removing #idents as I find them so my build will
> continue.
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
gcc 4.5 is different:
$ gcc-4.5 -c ident.c
$ gcc-4.5 -c -Wall ident.c
$
#pragma ident (as used in some of the system headers) is a different
story, though:
$ cat pragma-ident.c
#pragma ident "lets see what happens"
$ gcc-4.4 -c pragma-ident.c
$ gcc-4.4 -c -Wall pragma-ident.c
pragma-ident.c:1: warning: ignoring #pragma ident
$ gcc-4.5 -c pragma-ident.c
$ gcc-4.5 -c -Wall pragma-ident.c
pragma-ident.c:1:0: warning: ignoring #pragma ident
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code