mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Suppress const void* to void* warning for context info
This commit is contained in:
1 parent
e4d6e268e2
commit
a615703883
1 file changed
+3
Vendored
+3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user