Skip to content

Commit a49fdcb

Browse files
committed
bpo-5755: don't compile extensions with -Wstrict-prototypes
1 parent 67c4801 commit a49fdcb

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
No longer use the ``-Wstrict-prototypes`` compiler flag.
2+
This avoids a compiler warning when compiling C++ extension modules
3+
with distutils.

configure

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6678,9 +6678,6 @@ if test "${OPT-unset}" = "unset"
66786678
then
66796679
case $GCC in
66806680
yes)
6681-
if test "$CC" != 'g++' ; then
6682-
STRICT_PROTO="-Wstrict-prototypes"
6683-
fi
66846681
# For gcc 4.x we need to use -fwrapv so lets check if its supported
66856682
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
66866683
WRAP="-fwrapv"
@@ -6727,8 +6724,6 @@ then
67276724
;;
67286725
esac
67296726

6730-
OPT="$OPT $STRICT_PROTO"
6731-
67326727
case $ac_sys_system in
67336728
SCO_SV*) OPT="$OPT -m486 -DSCO5"
67346729
;;

configure.ac

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,9 +1421,6 @@ if test "${OPT-unset}" = "unset"
14211421
then
14221422
case $GCC in
14231423
yes)
1424-
if test "$CC" != 'g++' ; then
1425-
STRICT_PROTO="-Wstrict-prototypes"
1426-
fi
14271424
# For gcc 4.x we need to use -fwrapv so lets check if its supported
14281425
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
14291426
WRAP="-fwrapv"
@@ -1470,8 +1467,6 @@ then
14701467
;;
14711468
esac
14721469

1473-
OPT="$OPT $STRICT_PROTO"
1474-
14751470
case $ac_sys_system in
14761471
SCO_SV*) OPT="$OPT -m486 -DSCO5"
14771472
;;

0 commit comments

Comments
 (0)