Re: dialect specific warnings/WARNING_CFLAGS ?
Re: dialect specific warnings/WARNING_CFLAGS ?
- Subject: Re: dialect specific warnings/WARNING_CFLAGS ?
- From: "Sean McBride" <email@hidden>
- Date: Tue, 17 Mar 2009 17:05:44 -0400
- Organization: Rogue Research Inc.
On 3/17/09 4:04 PM, Jim Correia said:
>Is it possible to set dialect specific warning flags?
>
>The built in UI for conditional build settings only let's me use SDK
>or arch as conditions.
>
>I'd like to enable some Obj-C specific warnings, but I have non-Obj-C
>files in the project too.
Not that I know of. This has bugged me too. Especially if you have a
project with a mix of files like .c, .m, .mm, .cxx. Enabling warnings
that apply to only one language will lead to message like:
cc1plus: warning: command line option "-Wbad-function-cast" is valid for
C/ObjC but not for C++
The best you can do is set the warning per file, but that's a mess.
My bug on this is <rdar://problem/5295989>.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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