From ba5af7d1da1c5af3d929e232486a02e3ce161f9d Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 8 May 2023 11:58:54 +0200 Subject: [PATCH] mark getenv() NOLINT Locally (using clangd) no warning is reported... --- pdns/recursordist/rec-main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 91fe7d4dd4..f8708ec21a 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -2784,7 +2784,7 @@ static void initArgs() #ifdef HAVE_SYSTEMD + ". Set to the RUNTIME_DIRECTORY environment variable when that variable has a value (e.g. under systemd).") = ""; - auto runtimeDir = getenv("RUNTIME_DIRECTORY"); + auto* runtimeDir = getenv("RUNTIME_DIRECTORY"); // NOLINT(concurrency-mt-unsafe,cppcoreguidelines-pro-type-vararg) if (runtimeDir != nullptr) { ::arg().set("socket-dir") = runtimeDir; } -- 2.47.2