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 <hjl.tools@gmail.com>
This commit is contained in:
Adhemerval Zanella 2025-10-31 17:00:41 -03:00
parent ab1a96c978
commit 9044d61ff9
1 changed files with 1 additions and 1 deletions

View File

@ -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