On Fri, 12 Jun 2015 13:38:02 -0700, Jens Alfke said:

>
>> On Jun 12, 2015, at 12:30 PM, Sean McBride <[email protected]> wrote:
>> 
>> But now it warns: "Cast from 'const void *' to 'void *' drops const
>qualifier" because IOServiceAddMatchingNotification wants a void* but
>CFBridgingRetain returns a const void*.
>> 
>> Any clever solutions here?
>
>(void*)CFBridgingRetain(self)

Thanks for the reply...

That'll warn too.  CFBridgingRetain() returns const and the cast removes it.

test.m:5:12: warning: cast from 'const void *' to 'void *' drops const 
qualifier [-Wcast-qual]
    (void*)CFBridgingRetain(NSApp);
           ^

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to