From 9044d61ff9b0307d6ef34e4e4559a70ff7186906 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 31 Oct 2025 17:00:41 -0300 Subject: [PATCH] nss: Suppress clang -Wstring-plus-int on __nss_shlib_revision definition clang issues an warning that adding 'unsigned long' to a string does not append to the string. Reviewed-by: H.J. Lu --- nss/nss_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nss/nss_module.c b/nss/nss_module.c index 3cd1940b22..ac94e4d3f0 100644 --- a/nss/nss_module.c +++ b/nss/nss_module.c @@ -41,7 +41,7 @@ pointer manipulation. The "-1" accounts for the trailing NUL included in the sizeof. */ static const char *const __nss_shlib_revision - = LIBNSS_FILES_SO + sizeof("libnss_files.so") - 1; + = &LIBNSS_FILES_SO[sizeof("libnss_files.so") - 1]; /* A single-linked list used to implement a mapping from service names to NSS modules. (Most systems only use five or so modules, so a