diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-09 07:56:34 -0800 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-02-09 17:56:34 +0200 |
commit | 7df80492fc91cb5f344ef53a1ccce9a5bd3f4855 (patch) | |
tree | 3360e277fb6d0ef7fe9ce13b47fd60723a02b53d /Modules/_decimal | |
parent | 3a047a781a82e0a55c5dae1758e91f1f1ca76026 (diff) | |
download | cpython-git-7df80492fc91cb5f344ef53a1ccce9a5bd3f4855.tar.gz |
Fix some warnings produced by different compilers. (GH-5593) (GH-5600)
(cherry picked from commit bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Modules/_decimal')
-rw-r--r-- | Modules/_decimal/libmpdec/mpdecimal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c index 328ab92246..bfa8bb343e 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.c +++ b/Modules/_decimal/libmpdec/mpdecimal.c @@ -53,6 +53,12 @@ #endif +/* Disable warning that is part of -Wextra since gcc 7.0. */ +#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 7 + #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#endif + + #if defined(_MSC_VER) #define ALWAYS_INLINE __forceinline #elif defined(LEGACY_COMPILER) |