Add more GCC warning pragmas

This commit is contained in:
Behdad Esfahbod 2019-01-17 15:22:28 -05:00
parent 868b0c0c2e
commit a9946b7cfe
1 changed files with 6 additions and 0 deletions

View File

@ -30,7 +30,13 @@
#define HB_HH
#ifndef HB_NO_GCC_PRAGMAS
// Enable
#pragma GCC diagnostic warning "-Wall"
#pragma GCC diagnostic warning "-Wextra"
#pragma GCC diagnostic warning "-Wcast-align"
// Disable
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC diagnostic ignored "-Wunused-parameter" // TODO Fix
#endif
#ifdef HAVE_CONFIG_H