From: Adhemerval Zanella Date: Thu, 10 Mar 2022 11:31:06 +0000 (-0300) Subject: nss: Suppress clang -Wstring-plus-int on __nss_shlib_revision definition X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f82028fa5202f04b9f3d52a2e975e257c82b1f6e;p=thirdparty%2Fglibc.git 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. --- 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