We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c456796 commit d6a83abCopy full SHA for d6a83ab
src/hb.hh
@@ -241,7 +241,7 @@ extern "C" void hb_free_impl(void *ptr);
241
#define HB_CONST_FUNC
242
#define HB_PRINTF_FUNC(format_idx, arg_idx)
243
#endif
244
-#if defined(__GNUC__) && (__GNUC__ >= 4)
+#if defined(__GNUC__) && (__GNUC__ >= 4) || (__clang__)
245
#define HB_UNUSED __attribute__((unused))
246
#elif defined(_MSC_VER) /* https://github.com/harfbuzz/harfbuzz/issues/635 */
247
#define HB_UNUSED __pragma(warning(suppress: 4100 4101))
0 commit comments