In my Xcode 2.4 (4.0.1) project I need to have -fno-use-cxa-atexit set for
various .cpp files I have. Separately in my project are some .c files that
compile fine, but gcc emits a warning for each one:
warning: command line option "-fno-use-cxa-atexit" is valid for
C++/ObjC++ but not for C
The warning is understandable, but now I have the problem that I want to
suppress *just* those warnings (we have a zero-warning policy). I can't
compile my .c file with C++ b/c they have some old-school C semantics in
them, so I seem to be out of options. Any ideas? (Sorry in advance if I'm
missing something obvious).