• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
getting rid of C++ vs. C warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Xcode -> textbook programming
  • Next by Date: Re: hdiutil -create needs sudo for creating disk images?
  • Previous by thread: Re: Xcode -> textbook programming
  • Next by thread: XCode including source directory in include search path
  • Index(es):
    • Date
    • Thread