mirror of git://sourceware.org/git/glibc.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. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
ab1a96c978
commit
9044d61ff9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue