• 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: Option to flag selective warnings as errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Option to flag selective warnings as errors


  • Subject: Re: Option to flag selective warnings as errors
  • From: John Daniel <email@hidden>
  • Date: Tue, 20 Feb 2007 11:39:48 -0600

In the "Warnings" group, the first setting is:
"Tread warnings as Errors"

Enabling this option causes all warnings to be treated as errors. [GCC_TREAT_WARNINGS_AS_ERRORS, -Werror]

That should do it.

And while you are going through that code, if you see something that "looks fishy", you can do:
#warning This looks fishy


That way, you won't forget to check on these and they will bug you from time to time.

John

On Feb 20, 2007, at 11:15 AM, Isaac Wankerl wrote:

Is there a flag I can pass to GCC in my Xcode project so that certain
types of warnings will be treated as errors?  I am porting Windows
code and there are many warnings of various types, but I would like to
make sure I fix the really nasty ones.  For example, "cannot pass
objects of non-POD type through '...'; will abort at runtime".  This
is just a warning now, but I would like to elevate it to be an error.
Is this possible with Xcode/GCC?

For now, I can select the Errors and Warning group and then use the
search filter box to just show those warnings, but I am hoping for a
mechanism that will flag the offending code with errors as I compile
it.

Isaac
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40etresoft.com


This email sent to email@hidden

_______________________________________________ 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: Option to flag selective warnings as errors
      • From: "Isaac Wankerl" <email@hidden>
References: 
 >Option to flag selective warnings as errors (From: "Isaac Wankerl" <email@hidden>)

  • Prev by Date: Re: File copying
  • Next by Date: Re: File bug reports, please (was Re: Desired Feature: Language plugins & documentation)
  • Previous by thread: Option to flag selective warnings as errors
  • Next by thread: Re: Option to flag selective warnings as errors
  • Index(es):
    • Date
    • Thread