This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
#ident query
- From: Barry Clarkson <Barry dot Clarkson at kcom dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 20 Dec 2004 11:02:50 -0000
- Subject: #ident query
Hi,
I'm in the process of porting some code to a Linux based platform that is
using gcc 3.2.2. I am trying to enforce ansi C (as near as possible!) but
there are #ident directives within the code for third party source control.
What can I modify within the source (not ideal) or on the command line to
get ansi C and safely ignore the '#ident' directives (tried -fno-ident)?
Thanks in advance,
Barry
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
gcc -c -g -ansi -std=c99 -pedantic-errors -Wall -Wundef -Wshadow
-Wunreachable-code -Wno-long-long -Werror -fno-ident -I../inc -I../proto
aps_log_err.c -o ../obj/aps_log_err.o
aps_log_err.c:31:2: #ident is a GCC extension
#ident "@(#) SCCS aps_log_err.c 1.7 - 04/10/13 14:02:54"
The content of this e-mail and any attachment is private and may be legally
privileged. If you are not
the intended recipient, any use, disclosure, copying or forwarding of this
e-mail and/or its
attachments is unauthorised. If you have received this e-mail in error
please notify the sender by e-
mail and delete this message and any attachments immediately from this
system.
Kingston Communications (HULL) PLC is a public limited company incorporated
in England and Wales
with registration number 02150618 and whose registered office is at 37 Carr
Lane, Hull HU1 3RE
118 288 - Kingston UK Directory Enquiries. Each call costs 35p* for up to 3
searches, calls from
mobiles and other networks may vary. *As at 01/03/04.