aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-09 17:31:26 +0200
committerGitHub <noreply@github.com>2018-02-09 17:31:26 +0200
commitbfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e (patch)
treeb0bdd00da587355830e8b18fbadc72054ae0ad0c /Modules/_decimal
parentMake formatting of some return codes conforming to the general style. (#5587) (diff)
downloadcpython-bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e.tar.gz
cpython-bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e.tar.bz2
cpython-bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e.zip
Fix some warnings produced by different compilers. (#5593)
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.c6
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)