Skip to content

Commit d6a83ab

Browse files
IceflowREebraminio
authored andcommitted
Define HB_UNUSED for clang
1 parent c456796 commit d6a83ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hb.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ extern "C" void hb_free_impl(void *ptr);
241241
#define HB_CONST_FUNC
242242
#define HB_PRINTF_FUNC(format_idx, arg_idx)
243243
#endif
244-
#if defined(__GNUC__) && (__GNUC__ >= 4)
244+
#if defined(__GNUC__) && (__GNUC__ >= 4) || (__clang__)
245245
#define HB_UNUSED __attribute__((unused))
246246
#elif defined(_MSC_VER) /* https://github.com/harfbuzz/harfbuzz/issues/635 */
247247
#define HB_UNUSED __pragma(warning(suppress: 4100 4101))

0 commit comments

Comments
 (0)