• 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: Greg Guerin <email@hidden>
  • Date: Mon, 24 Jul 2006 11:06:50 -0700

Sean McBride wrote:

>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?

Define a custom rule?

A pattern for .m files that runs a custom script should work.  You could
put any options you want directly the script, or write the script to use
shell-variables defined by Xcode settings.

See Xcode Help's section on Build Rules.

  -- GG


 _______________________________________________
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:
    • Re: Enabling language-specific warnings in multi-language projects
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: [OT] Anyone created Xcode projects for building Open Source
  • Next by Date: Question about static libraries...
  • Previous by thread: Re: Universal binary doesn't run on PPC
  • Next by thread: Re: Enabling language-specific warnings in multi-language projects
  • Index(es):
    • Date
    • Thread