• 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: How to turn off -Werror for Omni-frameworks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to turn off -Werror for Omni-frameworks?


  • Subject: Re: How to turn off -Werror for Omni-frameworks?
  • From: Greg Titus <email@hidden>
  • Date: Thu, 30 Oct 2003 22:59:34 -0800

On Oct 30, 2003, at 3:34 PM, Philip Mvtteli wrote:
Hi


I try to compile OmniFoundation. Somehow, all the Omni-frameworks have
'-Werror' turned on. When I click on the project file and look in the
Inspector under "Styles". I can find an entry "Treat all warnings as
errors". Which means very probably '-Werror'. Unfortunately, this
switch is already turned off and has no influence at all anyway.
I also searched in the whole project, if I could find somewhere
'-Werror' defined. But no luck.

Is it possible to define build styles per target? I only found a way to
define them per project.
Does anybody have an idea, what goes wrong here? I see, that some
software of OmniGroup is already compiled for Panther. So it should
compile.

We haven't done a public release of our frameworks for XCode yet, so the warnings you are seeing are because of the gcc 3.1 -> gcc 3.3 change, which causes some extra warnings to be produced, and makes -Werror turn #warnings into errors (whereas in gcc 3.1 they stayed warnings, even with -Werror turned on).

If you have old-style targets in XCode (i.e. they haven't been upgraded to native targets), they don't actually use the build styles defined at the project level (which is what you describe). Instead, open up the Targets group on the left-hand side, and double-click on the framework target. You'll get a window with the ProjectBuilder style build settings. Under GCC Compiler Settings, turn off the Treat all warnings as errors switch, _AND_ under Expert View, remove "-Werror" from the value for WARNING_CFLAGS.

Then building the project should work fine. You'll need to do the same to any other Omni frameworks you use for the moment. We will be updating our published frameworks for Panther and XCode and all the stuff we've been working on lately, but I don't know when that will happen.

Hope this helps,

- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to turn off -Werror for Omni-frameworks? (From: Philip Mötteli <email@hidden>)

  • Prev by Date: Re: Animating control position
  • Next by Date: Freelance programming
  • Previous by thread: How to turn off -Werror for Omni-frameworks?
  • Next by thread: NetInfo Modification
  • Index(es):
    • Date
    • Thread