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

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


  • Subject: Re: Suppressing "-fno-use-cxa-atexit" warnings for C files
  • From: Chris Espinosa <email@hidden>
  • Date: Sun, 13 Aug 2006 22:22:05 -0700


On Aug 13, 2006, at 9:54 PM, Andy O'Meara wrote:

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


I'd just add the -fno-use-cxa-atexit flag to the Other C++ Flags build setting.

Chris

 _______________________________________________
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: "Andy O'Meara" <email@hidden>
    • Re: Suppressing "-fno-use-cxa-atexit" warnings for C files
      • From: "Andy O'Meara" <email@hidden>
References: 
 >Suppressing "-fno-use-cxa-atexit" warnings for C files (From: "Andy O'Meara" <email@hidden>)

  • Prev by Date: Re: MS Excel 2004 XLL addin in xcode
  • Next by Date: Find in project stopped searching all files
  • Previous by thread: Suppressing "-fno-use-cxa-atexit" warnings for C files
  • Next by thread: Re: Suppressing "-fno-use-cxa-atexit" warnings for C files
  • Index(es):
    • Date
    • Thread