• 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
Suppressing "-fno-use-cxa-atexit" warnings for C files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suppressing "-fno-use-cxa-atexit" warnings for C files


  • Subject: Suppressing "-fno-use-cxa-atexit" warnings for C files
  • From: "Andy O'Meara" <email@hidden>
  • Date: Mon, 14 Aug 2006 00:54:50 -0400
  • Thread-topic: Suppressing "-fno-use-cxa-atexit" warnings for C files

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).

Thanks,
Andy



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Suppressing "-fno-use-cxa-atexit" warnings for C files
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Just some help..
  • Next by Date: Re: MS Excel 2004 XLL addin in xcode
  • Previous by thread: Just some help..
  • Next by thread: Re: Suppressing "-fno-use-cxa-atexit" warnings for C files
  • Index(es):
    • Date
    • Thread