]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/attr.h: ATTR_STRING(): It only accepts one argument
authorAlejandro Colomar <alx@kernel.org>
Tue, 2 Jul 2024 23:59:19 +0000 (01:59 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 9 Jul 2024 01:25:01 +0000 (20:25 -0500)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/attr.h

index 590a817b05988d1e2143c9025afd84a76b538bee..02c7e2522200d76a97644e6be42a8dafd931fdc3 100644 (file)
@@ -26,9 +26,9 @@
 #endif
 
 #if (__GNUC__ >= 14)
-# define ATTR_STRING(...)       [[gnu::null_terminated_string_arg(__VA_ARGS__)]]
+# define ATTR_STRING(i)              [[gnu::null_terminated_string_arg(i)]]
 #else
-# define ATTR_STRING(...)
+# define ATTR_STRING(i)
 #endif