Re: Spurious warnings
Re: Spurious warnings
- Subject: Re: Spurious warnings
- From: "Jan E. Schotsman" <email@hidden>
- Date: Tue, 22 Jul 2008 09:49:47 +0200
On Jul 22, 2008, at 6:57 AM, Jens Alfke wrote:
Maybe you should post an example of code that produces the warning.
This is a nice one:
HIRect shapeBounds;
drawRect = CGRectMake( 0.0f, 0.0f, shapeBounds.size.width,
shapeBounds.size.height );
warning: passing argument 1 of 'CGRectMake' as 'float' rather than
'double' due to prototype
warning: passing argument 2 of 'CGRectMake' as 'float' rather than
'double' due to prototype
warning: passing argument 3 of 'CGRectMake' as 'float' rather than
'double' due to prototype
warning: passing argument 4 of 'CGRectMake' as 'float' rather than
'double' due to prototype
CGGeometry.h:
CG_INLINE CGRect CGRectMake(CGFloat x, CGFloat y, CGFloat width,
CGFloat height);
CGBase.h:
typedef float CGFloat;
HIRect is also made of float fields.
Jan E.
_______________________________________________
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