• 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: Spurious warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spurious warnings


  • Subject: Re: Spurious warnings
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 21 Jul 2008 10:26:34 -0700


On 21 Jul '08, at 9:23 AM, Jan E. Schotsman wrote:

When I enable the "Prototype conversion" warning in a project I get warned about float fields in my structs being converted from double to float. Is this a known bug?

It's correct behavior, if you read the description of that warning flag. It's warning you whenever the function's prototype results in parameter values being implicitly converted from one type (double) to another type (float). If your code required maximum numeric accuracy, you'd probably want to be warned about this kind of truncation.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Spurious warnings
      • From: Nathan Vander Wilt <email@hidden>
    • Re: Spurious warnings
      • From: "Jan E. Schotsman" <email@hidden>
References: 
 >Spurious warnings (From: "Jan E. Schotsman" <email@hidden>)

  • Prev by Date: GuardMalloc not working
  • Next by Date: MallocDebug hangs
  • Previous by thread: Spurious warnings
  • Next by thread: Re: Spurious warnings
  • Index(es):
    • Date
    • Thread