diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2019-11-28 12:50:08 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2020-10-22 11:47:36 +0200 |
commit | f1f6ef7b17dc97f784a4cdb33154800129dc6d26 (patch) | |
tree | 5d97d1d1ea2fb9777ca862ecc489c0bf643ad941 /py | |
parent | 9aa58cf8bac353297ff5e7b4f3331e5618046095 (diff) | |
download | micropython-f1f6ef7b17dc97f784a4cdb33154800129dc6d26.tar.gz micropython-f1f6ef7b17dc97f784a4cdb33154800129dc6d26.zip |
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.
Diffstat (limited to 'py')
-rw-r--r-- | py/vmentrytable.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/py/vmentrytable.h b/py/vmentrytable.h index 068214bf91..7912270872 100644 --- a/py/vmentrytable.h +++ b/py/vmentrytable.h @@ -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 |