提交 1172f653 编写于 作者: B Blue Swirl

Really enable -Werror

487fefdb.. did not actually enable -Werror despite the claims made by
configure output.
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 e99a22cc
...@@ -513,8 +513,21 @@ if test "$debug" = "no" ; then ...@@ -513,8 +513,21 @@ if test "$debug" = "no" ; then
fi fi
CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls" CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
LDFLAGS="$LDFLAGS -g" 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 if test "$werror" = "yes" ; then
CFLAGS="$CFLAGS -Werror" CFLAGS="$CFLAGS -Werror"
fi fi
if test "$solaris" = "no" ; then if test "$solaris" = "no" ; then
...@@ -653,18 +666,6 @@ if test ! -x "$(which cgcc 2>/dev/null)"; then ...@@ -653,18 +666,6 @@ if test ! -x "$(which cgcc 2>/dev/null)"; then
sparse="no" sparse="no"
fi 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 # Solaris specific configure tool chain decisions
# #
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册