getting rid of C++ vs. C warnings
getting rid of C++ vs. C warnings
- Subject: getting rid of C++ vs. C warnings
- From: Christopher Corbell <email@hidden>
- Date: Thu, 13 Nov 2003 21:55:40 -0800
I have a C++ module that also includes one C file.
I like to have C++ warnings on for the project (esp.
virtual destructor and hidden virtual function warnings).
However these generate warnings when compiling the
C file:
"-Wnon-virtual-dtor" is valid for C++ but not for C/ObjC
"-Woverloaded-virtual" is valid for C++ but not for C/ObjC
I'd like to suppress these warnings if possible.
One thing I tried was getting info on the C file and in
the Build tab's Additional Compiler Flags adding "-w".
However this wouldn't stick; as soon as I close the info
window the setting goes away, and it never suppresses
the warnings. Also if possible I'd like to just suppress these
warnings, and not all warnings, when compiling the C file.
Any suggestions?
TIA,
Christopher
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.