From b420ad65be7900f68187deca8893b538ead40073 Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Thu, 9 Jan 2014 09:28:56 -0600 Subject: [PATCH] Wrap AuthorizationExecuteWithPrivilegesAndWait in pragmas to ignore deprecated functions. I feel dirty. --- SUPlainInstallerInternals.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SUPlainInstallerInternals.m b/SUPlainInstallerInternals.m index d9a5e50a..40ac08f4 100644 --- a/SUPlainInstallerInternals.m +++ b/SUPlainInstallerInternals.m @@ -47,7 +47,8 @@ @end // Authorization code based on generous contribution from Allan Odgaard. Thanks, Allan! - +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" // this is terrible; will fix later probably static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authorization, const char* executablePath, AuthorizationFlags options, const char* const* arguments) { // *** MUST BE SAFE TO CALL ON NON-MAIN THREAD! @@ -68,6 +69,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza signal(SIGCHLD, oldSigChildHandler); return returnValue; } +#pragma clang diagnostic pop @implementation SUPlainInstaller (Internals)