From 2dcccae036f38950be86a16dffd0b6f6a9ac5548 Mon Sep 17 00:00:00 2001 From: Silver Dream ! Date: Sun, 6 Nov 2022 11:27:08 +0000 Subject: [PATCH] Updated ATTR_UNUSED() for clang --- src/common/attrib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/attrib.h b/src/common/attrib.h index a16b94a3b..3cdacb9d5 100644 --- a/src/common/attrib.h +++ b/src/common/attrib.h @@ -46,7 +46,7 @@ #ifdef __clang__ # define attribute(a) __attribute__(a) -# define ATTR_UNUSED(x) x +# define ATTR_UNUSED(x) __attribute__((__unused__)) x # define ATTR_NORETURN __attribute__((analyzer_noreturn)) #elif defined(__GNUC__) # define attribute(a) __attribute__(a)