Suppress const void* to void* warning for context info

This commit is contained in:
Zorg committed 2016-07-03 00:42:42 -04:00
1 parent e4d6e268e2
commit a615703883
1 file changed
+3
+3
View File
@@ -61,7 +61,10 @@ static NSString *SULocalServiceLookupReason = @"Local Service Connection";
{
assert(self.messagePort == NULL);
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-qual"
CFMessagePortContext context = {.version = 0, .info = (void *)CFBridgingRetain(self), .retain = NULL, .release = NULL, .copyDescription = NULL};
#pragma clang diagnostic pop
CFMessagePortRef messagePort = CFMessagePortCreateLocal(kCFAllocatorDefault, (CFStringRef)serviceName, messagePortCallback, &context, NULL);
if (messagePort == NULL) {