Skip to content

Commit

Permalink
py/vmentrytable: Ignore GCC -Woverride-init.
Browse files Browse the repository at this point in the history
Like Clang, GCC warns about this file, but only with -Woverride-init
which is enabled by -Wextra. Disable the warnings for this file just
like we do for Clang to make -Wextra happy.
  • Loading branch information
esmil committed Oct 22, 2020
1 parent 9aa58cf commit f1f6ef7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions py/vmentrytable.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winitializer-overrides"
#endif // __clang__
#if __GNUC__ >= 5
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverride-init"
#endif // __GNUC__ >= 5

static const void *const entry_table[256] = {
[0 ... 255] = &&entry_default,
Expand Down Expand Up @@ -119,3 +123,6 @@ static const void *const entry_table[256] = {
#if __clang__
#pragma clang diagnostic pop
#endif // __clang__
#if __GNUC__ >= 5
#pragma GCC diagnostic pop
#endif // __GNUC__ >= 5

0 comments on commit f1f6ef7

Please sign in to comment.