• 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: Make "incompatible pointer type" an error, not a warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make "incompatible pointer type" an error, not a warning


  • Subject: Re: Make "incompatible pointer type" an error, not a warning
  • From: Peter O'Gorman <email@hidden>
  • Date: Mon, 09 Feb 2009 13:20:41 -0600

Sean McBride wrote:
> On 2/9/09 12:27 PM, Peter O'Gorman said:
>
>>> Just google "gcc warning to error".  First hit: the gcc docs! :)
>>>
>>> -Werror=
>>> Make the specified warning into an error. The specifier for a warning is
>>> appended, for example -Werror=switch turns the warnings controlled by -
>>> Wswitch into errors. [...]
>>>
>> I don't belive that Apple's gcc has -Werror=, it came after gcc-4.2, I
>> think.
>
> Ugh, you're right.  It's in Apple's gcc-4.2 man page, but it seems to be
> ignored.  Oh well.
>

Or maybe I'm just an idiot who looked at the wrong manpage :)

It does seem to work for some warnings, e.g. unused-variable, but not
others, e.g. cast-qual.

Sorry for the noise,

Peter
--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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

References: 
 >Make "incompatible pointer type" an error, not a warning (From: Scott Johnson <email@hidden>)
 >Re: Make "incompatible pointer type" an error, not a warning (From: "Sean McBride" <email@hidden>)
 >Re: Make "incompatible pointer type" an error, not a warning (From: Peter O'Gorman <email@hidden>)
 >Re: Make "incompatible pointer type" an error, not a warning (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Make "incompatible pointer type" an error, not a warning
  • Next by Date: Re: Help on Stack trace
  • Previous by thread: Re: Make "incompatible pointer type" an error, not a warning
  • Next by thread: Making a bundle from an existing target
  • Index(es):
    • Date
    • Thread