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.
This commit is contained in:
Sergey B Kirpichev 2024-03-03 10:25:39 +03:00 committed by GitHub
parent 67f742e03a
commit 002a5948fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 3 deletions

7
configure generated vendored
View file

@ -14516,6 +14516,13 @@ else $as_nop
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes
then :
as_fn_append LIBMPDEC_CFLAGS " -fstrict-overflow"
fi
if test "x$with_pydebug" = xyes
then :