From: Arne Schwabe Date: Tue, 8 Jun 2021 21:43:30 +0200 Message-Id: <20210608194330.1431202-1-arne@...1227...> MIME-Version: 1.0 Subject: [Openvpn-devel] [PATCH] Silence warning about format string in check_ca_required List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net clang does not like if the format argument of printf like function is not a string literal: warning: format string is not a string literal (potentially insecure) Use "%s" as string literal to silence the warning. Signed-off-by: Arne Schwabe --- src/openvpn/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 8978955c3..5ecb7b7db 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -2077,7 +2077,7 @@ check_ca_required(const struct options *options) " or CA path (--capath)" #endif " and/or peer fingerprint verification (--peer-fingerprint)"; - msg(M_USAGE, str); + msg(M_USAGE, "%s", str); } static void -- 2.32.0