How to get rid of "warning: cast to pointer from integer of different size"
How to get rid of "warning: cast to pointer from integer of different size"
- Subject: How to get rid of "warning: cast to pointer from integer of different size"
- From: "Marc Rouen Meguillo" <email@hidden>
- Date: Thu, 13 Nov 2008 14:40:05 +0800
Given the following code:
CFStringRef myString= (CFStringRef) SCDynamicStoreKeyCreateNetworkInterface( kCFAllocatorDefault, kSCDynamicStoreDomainState);
I will get the "warning: cast to pointer from integer of different size" during build.
Actually the SCDynamicStoreKeyCreateNetworkInterface function already returns a CFStringRef according to Apple Documentation.
However if I remove the type cast to CFStringRef, im getting the "warning: initialization makes pointer from integer without a cast".
How do I get rid of these warnings?
Im using XCode 3.1 and GCC 4.0 running on Leopard
10.5.5.
_______________________________________________
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