From a61570388372b310a601cbbc45ee704ae8f2676d Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 3 Jul 2016 00:42:42 -0400 Subject: [PATCH] Suppress const void* to void* warning for context info --- Sparkle/SULocalMessagePort.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sparkle/SULocalMessagePort.m b/Sparkle/SULocalMessagePort.m index f5a28026..4048cc0a 100644 --- a/Sparkle/SULocalMessagePort.m +++ b/Sparkle/SULocalMessagePort.m @@ -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) {