From: Mike Yuan Date: Tue, 12 Mar 2024 06:23:36 +0000 (+0800) Subject: env-util: remove unneeded DISABLE_WARNING_FORMAT_NONLITERAL X-Git-Tag: v256-rc1~560^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b8edb512a7368d391c7c5cb5791ae16fc408894;p=thirdparty%2Fsystemd.git env-util: remove unneeded DISABLE_WARNING_FORMAT_NONLITERAL _printf_ is used, so this shouldn't emit a warning in the first place. --- diff --git a/src/basic/env-util.c b/src/basic/env-util.c index 7608f90a4a6..9e74ba0f0fc 100644 --- a/src/basic/env-util.c +++ b/src/basic/env-util.c @@ -1140,9 +1140,7 @@ int setenvf(const char *name, bool overwrite, const char *valuef, ...) { return RET_NERRNO(unsetenv(name)); va_start(ap, valuef); - DISABLE_WARNING_FORMAT_NONLITERAL; r = vasprintf(&value, valuef, ap); - REENABLE_WARNING; va_end(ap); if (r < 0)