From b73a3856961f96169e87600ec6bcd95dfdc8be94 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 27 Aug 2024 10:38:18 +1000 Subject: [PATCH] Define ISC_ATTR_UNUSED macro for __attribute__((__unused__)) The ISC_ATTR_UNUSED macro was missing in BIND 9.18, which complicated things when backporting merge requests from main. As __attribute__((__unused__)) is ubiquitous, just define the macro. --- lib/isc/include/isc/attributes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/isc/include/isc/attributes.h b/lib/isc/include/isc/attributes.h index abe615223e..f38a558552 100644 --- a/lib/isc/include/isc/attributes.h +++ b/lib/isc/include/isc/attributes.h @@ -80,3 +80,5 @@ #define ISC_ATTR_MALLOC_DEALLOCATOR(deallocator) #define ISC_ATTR_MALLOC_DEALLOCATOR_IDX(deallocator, idx) #endif /* HAVE_FUNC_ATTRIBUTE_MALLOC */ + +#define ISC_ATTR_UNUSED __attribute__((__unused__))