• 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: mapping warning messages to build settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mapping warning messages to build settings?


  • Subject: Re: mapping warning messages to build settings?
  • From: Cameron Hayne <email@hidden>
  • Date: Mon, 18 Sep 2006 15:19:26 -0400

On 18-Sep-06, at 2:38 PM, Steve Christensen wrote:

It looks like these particular sources were written awhile ago and don't do all that much casting. And I don't yet have a good enough grasp of the whole thing to figure out why they casted where they did. This leaves me with at least a couple hundred warnings. I was hoping to cut down the noise a bit to see what else really should be fixed...

Of course you could just remove the -Wconversion warning temporarily so you could go on to more important things, but I would recommend instead *adding* to the "noise" by inserting code at each of the places you get a warning to print out the value being passed if it differs from what you would get via proper casting.
E.g. something like:


if ((long int)floatVal != floatVal) NSLog(@"Passed value (%f) truncated to int in function foo", floatVal);

--
Cameron Hayne
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: mapping warning messages to build settings?
      • From: Steve Christensen <email@hidden>
References: 
 >mapping warning messages to build settings? (From: Steve Christensen <email@hidden>)
 >Re: mapping warning messages to build settings? (From: Cameron Hayne <email@hidden>)
 >Re: mapping warning messages to build settings? (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: mapping warning messages to build settings?
  • Next by Date: Hiding "cast from pointer to integer of different size" warning
  • Previous by thread: Re: mapping warning messages to build settings?
  • Next by thread: Re: mapping warning messages to build settings?
  • Index(es):
    • Date
    • Thread