This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

#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 version...

$ 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)

Command line...

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

Example #ident...

#ident "@(#) SCCS aps_log_err.c 1.7 - 04/10/13
14:02:54"



	
	
		
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]