diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-06-13 15:37:55 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-06-13 15:37:55 +0000 |
commit | 1172f6536247c8f5a382e6f9062034b1e9bec631 (patch) | |
tree | e36ab561d9e2c9d47d5655bea5b9b7ae37a9e6f6 /configure | |
parent | e99a22cc20259ee3223d3ba9064ee61cf37d3e7b (diff) |
Really enable -Werror
487fefdb.. did not actually enable -Werror despite the claims made by
configure output.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -513,8 +513,21 @@ if test "$debug" = "no" ; then fi CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls" LDFLAGS="$LDFLAGS -g" + +# Consult white-list to determine whether to enable werror +# by default. Only enable by default for git builds +if test -z "$werror" ; then + z_version=`cut -f3 -d. $source_path/VERSION` + if test "$z_version" = "50" -a \ + "$linux" = "yes" ; then + werror="yes" + else + werror="no" + fi +fi + if test "$werror" = "yes" ; then -CFLAGS="$CFLAGS -Werror" + CFLAGS="$CFLAGS -Werror" fi if test "$solaris" = "no" ; then @@ -653,18 +666,6 @@ if test ! -x "$(which cgcc 2>/dev/null)"; then sparse="no" fi -# Consult white-list to determine whether to enable werror -# by default. Only enable by default for git builds -if test -z "$werror" ; then - z_version=`cut -f3 -d. $source_path/VERSION` - if test "$z_version" = "50" -a \ - "$linux" = "yes" ; then - werror="yes" - else - werror="no" - fi -fi - # # Solaris specific configure tool chain decisions # |