From a33d7430ed524c6874603a557bbd0952c2b8d1b2 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 3 Jul 2024 01:59:19 +0200 Subject: [PATCH] lib/attr.h: ATTR_STRING(): It only accepts one argument Signed-off-by: Alejandro Colomar --- lib/attr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/attr.h b/lib/attr.h index 590a817b..02c7e252 100644 --- a/lib/attr.h +++ b/lib/attr.h @@ -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