From 05e845c49ad2eebf110dcc6cb0ee48a7f68ca233 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 29 Mar 2021 16:02:10 -0700 Subject: [PATCH] Make previous commit gcc-only --- src/hb.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb.hh b/src/hb.hh index 3dc6ef472..45df81d69 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -117,8 +117,10 @@ #pragma GCC diagnostic ignored "-Wshadow" // TODO fix #pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" // TODO fix #pragma GCC diagnostic ignored "-Wunused-parameter" // TODO fix +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic ignored "-Wunused-result" // TODO fix #endif +#endif /* Ignored intentionally. */ #ifndef HB_NO_PRAGMA_GCC_DIAGNOSTIC_IGNORED