diff --git a/Sparkle/SUDSAVerifier.m b/Sparkle/SUDSAVerifier.m index b9018471..fa5f9934 100644 --- a/Sparkle/SUDSAVerifier.m +++ b/Sparkle/SUDSAVerifier.m @@ -65,7 +65,13 @@ } if (format == kSecFormatOpenSSL && itemType == kSecItemTypePublicKey && CFArrayGetCount(items) == 1) { + // Seems silly, but we can't quiet the warning about dropping CFTypeRef's const qualifier through + // any manner of casting I've tried, including interim explicit cast to void*. The -Wcast-qual + // warning is on by default with -Weverything and apparently became more noisy as of Xcode 7. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wcast-qual" _secKey = (SecKeyRef)CFRetain(CFArrayGetValueAtIndex(items, 0)); +#pragma clang diagnostic pop } CFRelease(items);