summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-09 15:31:26 (GMT)
committerGitHub <noreply@github.com>2018-02-09 15:31:26 (GMT)
commitbfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e (patch)
treeb0bdd00da587355830e8b18fbadc72054ae0ad0c /Modules/_decimal
parent5bb0005f9ff768ac443924b4bb26c3818ce8dc5a (diff)
downloadcpython-bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e.zip
cpython-bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e.tar.gz
cpython-bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e.tar.bz2
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 328ab92..bfa8bb3 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)