Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
No longer use the ``-Wstrict-prototypes`` compiler flag.
This avoids a compiler warning when compiling C++ extension modules
with distutils.
9 changes: 3 additions & 6 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -6011,9 +6011,6 @@ if test "${OPT-unset}" = "unset"
then
case $GCC in
yes)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
# For gcc 4.x we need to use -fwrapv so lets check if its supported
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
WRAP="-fwrapv"
Expand All @@ -6030,13 +6027,13 @@ then
if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for
# debug builds.
OPT="-g -O0 -Wall $STRICT_PROTO"
OPT="-g -O0 -Wall"
else
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
OPT="-g $WRAP -O3 -Wall"
fi
;;
*)
OPT="-O3 -Wall $STRICT_PROTO"
OPT="-O3 -Wall"
;;
esac
case $ac_sys_system in
Expand Down
9 changes: 3 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1071,9 +1071,6 @@ if test "${OPT-unset}" = "unset"
then
case $GCC in
yes)
if test "$CC" != 'g++' ; then
STRICT_PROTO="-Wstrict-prototypes"
fi
# For gcc 4.x we need to use -fwrapv so lets check if its supported
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
WRAP="-fwrapv"
Expand All @@ -1090,13 +1087,13 @@ then
if test "$Py_DEBUG" = 'true' ; then
# Optimization messes up debuggers, so turn it off for
# debug builds.
OPT="-g -O0 -Wall $STRICT_PROTO"
OPT="-g -O0 -Wall"
else
OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
OPT="-g $WRAP -O3 -Wall"
fi
;;
*)
OPT="-O3 -Wall $STRICT_PROTO"
OPT="-O3 -Wall"
;;
esac
case $ac_sys_system in
Expand Down