mirror of
https://sourceware.org/git/glibc.git
synced 2026-10-24 01:33:52 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user