From 92139e7b6b5fe84015d44d9516f3e1df7a3fc3bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 28 Mar 2022 17:00:25 +0200 Subject: [PATCH] cpp: Put local helper function into unnamed namespace lang/cpp/src/context.cpp (to_auditlog_flags): Wrap in unnamed namespace. -- GnuPG-bug-id: 5906 --- lang/cpp/src/context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 50726816..6d840f06 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -1154,6 +1154,7 @@ Error Context::startCombinedDecryptionAndVerification(const Data &cipherText, Da return startCombinedDecryptionAndVerification(cipherText, plainText, DecryptNone); } +namespace { unsigned int to_auditlog_flags(unsigned int flags) { unsigned int result = 0; @@ -1168,6 +1169,7 @@ unsigned int to_auditlog_flags(unsigned int flags) } return result; } +} Error Context::startGetAuditLog(Data &output, unsigned int flags) {