mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
add -Werror=declaration-after-statement only to stdlib extension modules (closes #21121)
Patch from Stefan Krah.
This commit is contained in:
parent
3b48af018f
commit
acb8c52343
5 changed files with 20 additions and 3 deletions
4
configure
vendored
4
configure
vendored
|
@ -662,6 +662,7 @@ SHLIB_SUFFIX
|
|||
LIBTOOL_CRUFT
|
||||
OTHER_LIBTOOL_OPT
|
||||
UNIVERSAL_ARCH_FLAGS
|
||||
CFLAGS_NODIST
|
||||
BASECFLAGS
|
||||
OPT
|
||||
ABIFLAGS
|
||||
|
@ -6292,6 +6293,7 @@ fi
|
|||
|
||||
|
||||
|
||||
|
||||
# The -arch flags for universal builds on OSX
|
||||
UNIVERSAL_ARCH_FLAGS=
|
||||
|
||||
|
@ -6452,7 +6454,7 @@ $as_echo "$ac_cv_declaration_after_statement_warning" >&6; }
|
|||
|
||||
if test $ac_cv_declaration_after_statement_warning = yes
|
||||
then
|
||||
BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement"
|
||||
CFLAGS_NODIST="$CFLAGS_NODIST -Werror=declaration-after-statement"
|
||||
fi
|
||||
|
||||
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue