• 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: Enabling language-specific warnings in multi-language projects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling language-specific warnings in multi-language projects


  • Subject: Re: Enabling language-specific warnings in multi-language projects
  • From: "Sean McBride" <email@hidden>
  • Date: Sun, 23 Jul 2006 23:56:30 -0400

Eric Albert (email@hidden) on 2006-07-20 00:24 said:

>> Urg!  How can I get Xcode to use this warning only with languages that
>> support it and not give this silly warning otherwise?
>
>One way to do this is to use "Other C Flags" instead of "Other
>Warning Flags" and then customize "Other C++ Flags" to not contain
>the flag.  It's a bit messy, but it worked for me in a quick test.

There's no "Other Objective-C Flags" is there?  How about -Wprotocol and
-Wundeclared-selector?  Putting them in WARNING_CFLAGS or OTHER_CFLAGS
gives me: "-Wprotocol is valid for ObjC/ObjC++ but not for C", putting
them in OTHER_CPLUSPLUSFLAGS will miss .m files I assume.

Any way to get these 2 in multi-language projects?

Thanks,

--
"do not fear death, but rather the unlived life"

 _______________________________________________
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:
    • Universal binary doesn't run on PPC
      • From: Walter <email@hidden>
References: 
 >Enabling language-specific warnings in multi-language projects (From: "Sean McBride" <email@hidden>)
 >Re: Enabling language-specific warnings in multi-language projects (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: problem with -Wunreachable-code
  • Next by Date: Universal binary doesn't run on PPC
  • Previous by thread: Re: Enabling language-specific warnings in multi-language projects
  • Next by thread: Universal binary doesn't run on PPC
  • Index(es):
    • Date
    • Thread