• 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
clang: warning: argument unused during compilation: '-O0'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clang: warning: argument unused during compilation: '-O0'


  • Subject: clang: warning: argument unused during compilation: '-O0'
  • From: Jeff Johnson <email@hidden>
  • Date: Mon, 05 Sep 2011 10:35:48 -0500

In the Xcode build settings for my app, I have GCC_VERSION set to "com.apple.compilers.llvm.clang.1_0". In xcconfig files, I have GCC_OPTIMIZATION_LEVEL set to "0" for the Debug configuration and "s" for the Release configuration. For one .c file in the project, where performance is critical, I have the additional compiler flag "-O3" set in Xcode. When I build the Debug configuration, I get the following warning for the .c file:

clang: warning: argument unused during compilation: '-O0'

I get an analogous warning in the Release configuration.

I'd obviously like to build the project without any warnings. Is there a way to get rid of the warning? As far as I know, I'm not doing anything wrong, and this warning is needless.

-Jeff

 _______________________________________________
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

  • Prev by Date: Re: How To Fix the Products Group?
  • Next by Date: Xcode 4 Git—"This File Does Not Exist at the Selected Revision"
  • Previous by thread: Re: Stripping executable
  • Next by thread: Xcode 4 Git—"This File Does Not Exist at the Selected Revision"
  • Index(es):
    • Date
    • Thread