• 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: dialect specific warnings/WARNING_CFLAGS ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >dialect specific warnings/WARNING_CFLAGS ? (From: Jim Correia <email@hidden>)

  • Prev by Date: Problem sending data with CFHTTPMessage
  • Next by Date: Can't build Release for x86_64
  • Previous by thread: dialect specific warnings/WARNING_CFLAGS ?
  • Next by thread: Re: dialect specific warnings/WARNING_CFLAGS ?
  • Index(es):
    • Date
    • Thread