aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorDavid CARLIER <[email protected]>2021-02-28 20:36:23 +0000
committerDavid CARLIER <[email protected]>2021-02-28 21:14:52 +0000
commit4287dbcdd8360efe3bc6a3b1480ac4e7da55ddea (patch)
tree5e244c0da960e896d0660efa5f7922c1ae47844a /src/cli
parentd4ed1488764c2e8731230af7e9784ac2b5d3650a (diff)
using pragma directives instead
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/sandbox.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli/sandbox.cpp b/src/cli/sandbox.cpp
index 52f4a1943..eeabdc0ef 100644
--- a/src/cli/sandbox.cpp
+++ b/src/cli/sandbox.cpp
@@ -109,10 +109,14 @@ bool Sandbox::init()
return true;
#elif defined(BOTAN_TARGET_OS_HAS_SANDBOX_PROC)
+
+ BOTAN_DIAGNOSTIC_PUSH
+ BOTAN_DIAGNOSTIC_IGNORE_DEPRECATED
if (::sandbox_init(kSBXProfileNoWriteExceptTemporary, SANDBOX_NAMED, nullptr) < 0)
{
return false;
}
+ BOTAN_DIAGNOSTIC_POP
return true;
#else