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.
This commit is contained in:
Mark Andrews 2024-08-27 10:38:18 +10:00 committed by Ondřej Surý
parent 38a8fc87c5
commit b73a385696
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41

View file

@ -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__))