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