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]

Re: #ident query


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


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