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.
This commit is contained in:
Behdad Esfahbod 2021-03-30 20:54:20 -06:00
parent a4fb5da984
commit 1b1413246b
1 changed files with 1 additions and 0 deletions

View File

@ -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