]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nss: Suppress clang -Wstring-plus-int on __nss_shlib_revision definition
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 10 Mar 2022 11:31:06 +0000 (08:31 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Oct 2025 16:53:33 +0000 (13:53 -0300)
clang issues an warning that adding 'unsigned long' to a string does not
append to the string.

nss/nss_module.c

index ac94e4d3f02d80c098f6a6dab53392c9f9386e66..3096a2f6f24c6533d736f1850d46f9f7ed0652f2 100644 (file)
@@ -33,6 +33,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <pointer_guard.h>
+#include <sysdep.h>
 
 /* Suffix after .so of NSS service modules.  This is a bit of magic,
    but we assume LIBNSS_FILES_SO looks like "libnss_files.so.2" and we