From d6a83abd6a0c684bd9a27f593d5be388819022b7 Mon Sep 17 00:00:00 2001 From: Iceflower Date: Thu, 26 Sep 2019 11:42:11 +0200 Subject: [PATCH] Define HB_UNUSED for clang --- src/hb.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb.hh b/src/hb.hh index 5934688d4..f31651217 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -241,7 +241,7 @@ extern "C" void hb_free_impl(void *ptr); #define HB_CONST_FUNC #define HB_PRINTF_FUNC(format_idx, arg_idx) #endif -#if defined(__GNUC__) && (__GNUC__ >= 4) +#if defined(__GNUC__) && (__GNUC__ >= 4) || (__clang__) #define HB_UNUSED __attribute__((unused)) #elif defined(_MSC_VER) /* https://github.com/harfbuzz/harfbuzz/issues/635 */ #define HB_UNUSED __pragma(warning(suppress: 4100 4101))