From 1b1413246b8b4a9c6f7e0aac16afd6d110c142cf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 30 Mar 2021 20:54:20 -0600 Subject: [PATCH] Disable -Wunused-macros under GCC Since the pragram in hb-ot-shape-complex-indic-table.cc didn't seem to silence GCC, eg: ../../src/hb-ot-shape-complex-indic-table.cc:55: warning: macro "ISC_TL" is not used [-Wunused-macros] 55 | #define ISC_TL INDIC_SYLLABIC_CATEGORY_TONE_LETTER /* 7 chars; Tone_Letter */ disable it at compiler level. --- src/hb.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb.hh b/src/hb.hh index 4d90e4d57..b5187e837 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -118,6 +118,7 @@ #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-macros" // TODO fix #pragma GCC diagnostic ignored "-Wunused-result" // TODO fix #endif #endif