• 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: "Sean McBride" <email@hidden>
  • Date: Mon, 9 Feb 2009 13:10:37 -0500
  • Organization: Rogue Research Inc.

On 2/9/09 9:20 AM, Scott Johnson said:

>I get a warning in Xcode 3.0 in my C Carbon app which is "warning:
>initialization from incompatible pointer type". This warning can be dealt
>properly by casting the pointer. This is all great, but I would actually
>prefer this warning be an error, so that I am required to cast the pointer
>assignment, and I do not want to open up a whole series of other warnings
>and errors in the process.

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. [...]

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 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: Chris Espinosa <email@hidden>
References: 
 >Make "incompatible pointer type" an error, not a warning (From: Scott Johnson <email@hidden>)

  • Prev by Date: Re: Application Verification Failed Problem
  • Next by Date: Re: Help on Stack trace
  • Previous by thread: Make "incompatible pointer type" an error, not a warning
  • Next by thread: Re: Make "incompatible pointer type" an error, not a warning
  • Index(es):
    • Date
    • Thread