• 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: Greg Guerin <email@hidden>
  • Date: Tue, 17 Mar 2009 14:38:37 -0700

Sean McBride wrote:

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.


It should also be doable by moving the source files into sub-targets that only compile, then a linking stage in another target, with target dependencies to the compile-only targets.

Still a mess, but a different category of messitude.

  -- 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: dialect specific warnings/WARNING_CFLAGS ?
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Can't build Release for x86_64
  • Next by Date: Debugger failure within layered subclasses
  • Previous by thread: Re: dialect specific warnings/WARNING_CFLAGS ?
  • Next by thread: Re: dialect specific warnings/WARNING_CFLAGS ?
  • Index(es):
    • Date
    • Thread