]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/attr.h: ATTR_NONSTRING: Add attribute [[gnu::nonstring]]
authorAlejandro Colomar <alx@kernel.org>
Sun, 5 Oct 2025 08:09:04 +0000 (10:09 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 18 Oct 2025 19:08:47 +0000 (14:08 -0500)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/attr.h

index 2dce1411419dd97a9cbd968454d00e80b3774c85..8150ddb60b3f840643b879c623a024aa6a85b5cb 100644 (file)
 # define ATTR_STRING(i)
 #endif
 
+#if __has_c_attribute(gnu::nonstring)
+# define ATTR_NONSTRING              [[gnu::nonstring]]
+#else
+# define ATTR_NONSTRING
+#endif
+
 
 #endif  // include guard