Commit d5439142 authored by Fred Drake's avatar Fred Drake

When we know the compiler is GCC, always add the -Wall and

-Wstrict-prototypes options.  This will make it a lot easier to keep
warnings under control in the first place in the future.

There is one known warning at this time, caught by the -Wstrict-prototypes
option.  In Modules/main.c, the declaration of getopt() without parameters
gets a complaint (rightly) that it is not a proper prototype.  The lack of
a complete prototype information should be corrected when the right
portability conditions have been identified.

Approved by the Guido.
parent b8ebf55a
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -308,8 +308,8 @@ then
case $GCC in
yes)
case $ac_cv_prog_cc_g in
yes) OPT="-g -O2";;
*) OPT="-O2";;
yes) OPT="-g -O2 -Wall -Wstrict-prototypes";;
*) OPT="-O2 -Wall -Wstrict-prototypes";;
esac
;;
*) OPT="-O";;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment