From 6033bd4228b3dc1a82865a491cfe2b2e90929ede Mon Sep 17 00:00:00 2001 From: Brian Bergstrand Date: Tue, 10 Feb 2015 12:36:58 -0600 Subject: [PATCH] Suppress AuthorizationExecuteWithPrivileges deprecated warning --- Sparkle/SUGuidedPackageInstaller.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sparkle/SUGuidedPackageInstaller.m b/Sparkle/SUGuidedPackageInstaller.m index db801d8a..4cab7d42 100644 --- a/Sparkle/SUGuidedPackageInstaller.m +++ b/Sparkle/SUGuidedPackageInstaller.m @@ -28,8 +28,11 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza sig_t oldSigChildHandler = signal(SIGCHLD, SIG_DFL); BOOL returnValue = YES; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" /* AuthorizationExecuteWithPrivileges used to support 10.4+; should be replaced with XPC or external process */ if (AuthorizationExecuteWithPrivileges(authorization, executablePath, options, (char* const*)arguments, NULL) == errAuthorizationSuccess) +#pragma clang diagnostic pop { int status = 0; pid_t pid = wait(&status);