• 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
strange compiler warnings - can't get rid of them?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange compiler warnings - can't get rid of them?


  • Subject: strange compiler warnings - can't get rid of them?
  • From: Jens Miltner <email@hidden>
  • Date: Tue, 27 Nov 2007 17:52:14 +0100

Hi,

I have the following line in my source code:

NSSize warningIconSize = NSMakeSize(iconSize.width * 0.75, iconSize.height * 0.75);

This line triggers the following errors:

warning: passing argument 1 of 'NSMakeSize' as 'float' rather than 'double' due to prototype
warning: passing argument 2 of 'NSMakeSize' as 'float' rather than 'double' due to prototype

I tried to get rid of these warnings by explicitely casting the arguments of NSMakeSize to float, but this doesn't help. 
I also tried to assign the values to temporary variables of type float - still got the same warnings.

FWIW, I'm using "-Wconversion -Wall -Winvalid-pch" as warning settings. I probably can get rid of the warnings by reducing the warning level, but in theory I should be able to get rid of the warnings by 'fixing' the code, shouldn't I?

Any ideas how to get rid of these warnings?

Thanks,
</jum>


 _______________________________________________
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: strange compiler warnings - can't get rid of them?
      • From: email@hidden (Stefan Haller)
    • Re: strange compiler warnings - can't get rid of them?
      • From: Jeff Johnson <email@hidden>
    • Re: strange compiler warnings - can't get rid of them?
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: HeaderDoc DTD
  • Next by Date: Hello, List!
  • Previous by thread: Re: HeaderDoc DTD
  • Next by thread: Re: strange compiler warnings - can't get rid of them?
  • Index(es):
    • Date
    • Thread