clang: warning: argument unused during compilation: '-O0'
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