summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2024-03-03 07:25:39 (GMT)
committerGitHub <noreply@github.com>2024-03-03 07:25:39 (GMT)
commit002a5948fc9139abec2ecf92df8b543e093c43fb (patch)
treef42b37bbd7b36904bdc9ccd9e3b8306d3b24499c /Modules/_decimal
parent67f742e03aacb6217c5bb496e31f96dbf31c6f86 (diff)
downloadcpython-002a5948fc9139abec2ecf92df8b543e093c43fb.zip
cpython-002a5948fc9139abec2ecf92df8b543e093c43fb.tar.gz
cpython-002a5948fc9139abec2ecf92df8b543e093c43fb.tar.bz2
gh-108562: Fix compiler warnings for libmpdec (#114751)
If awailable, enable -fstrict-overflow for libmpdec. Also shut off false positive warnings (-Warray-bounds). The later was backported from mpdecimal-4.0.0.
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/libmpdec/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_decimal/libmpdec/io.c b/Modules/_decimal/libmpdec/io.c
index e7bd6ae..4e95b89 100644
--- a/Modules/_decimal/libmpdec/io.c
+++ b/Modules/_decimal/libmpdec/io.c
@@ -48,6 +48,7 @@
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
+ #pragma GCC diagnostic ignored "-Warray-bounds"
#endif