Commit f1f6ef7b authored by Emil Renner Berthing's avatar Emil Renner Berthing

py/vmentrytable: Ignore GCC -Woverride-init.

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.
parent 9aa58cf8
......@@ -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,
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment