This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: #ident query
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Barry Clarkson <cheekyscamp at yahoo dot co dot uk>, gcc-help at gcc dot gnu dot org
- Date: Wed, 22 Dec 2004 06:33:12 -0600
- Subject: Re: #ident query
- References: <20041222073856.19981.qmail@web90106.mail.scd.yahoo.com>
Hi Barry,
You could pre-process the source file to remove the offending #ident lines
before compiling.
This will remove the line entirely...
grep -v -e '^#ident' source.c >source.c1
gcc -pedantic -W -Wall -o source.o -x c source.c1
Or this will replace the line with a blank line...
sed -e 's/^#ident.*$//' source.c >source.c1
gcc -pedantic -W -Wall -o source.o -x c source.c1
HTH,
--Eljay