File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ No longer use the ``-Wstrict-prototypes `` compiler flag.
2+ This avoids a compiler warning when compiling C++ extension modules
3+ with distutils.
Original file line number Diff line number Diff line change @@ -6678,9 +6678,6 @@ if test "${OPT-unset}" = "unset"
66786678then
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 ;;
Original file line number Diff line number Diff line change @@ -1421,9 +1421,6 @@ if test "${OPT-unset}" = "unset"
14211421then
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 ;;
You can’t perform that action at this time.
0 commit comments