From: <sg...@us...> - 2003-08-31 21:38:05
|
Update of /cvsroot/libfunutil/libfunutil/toc/tests In directory sc8-pr-cvs1:/tmp/cvs-serv935/toc/tests Modified Files: gnu_cpp_tools.sh Log Message: tweaks to --enable-werror Index: gnu_cpp_tools.sh =================================================================== RCS file: /cvsroot/libfunutil/libfunutil/toc/tests/gnu_cpp_tools.sh,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- gnu_cpp_tools.sh 29 Aug 2003 11:35:15 -0000 1.8 +++ gnu_cpp_tools.sh 31 Aug 2003 21:38:01 -0000 1.9 @@ -6,6 +6,7 @@ # with --enable-debug="-O3 -fno-inline" etc. # --enable-warn causes stuff to be built -Wall. To turn on -Werror, go # --enable-warn="-Wall -Werror" etc. +# --enable-werror same as --enable-warn="-Wall -Werror" # # It calls toc_add_make for the following: # - CC /path/to/gcc? @@ -56,9 +57,14 @@ WARN="$configure_enable_warn" fi -if test "$configure_enable_werror" = 1; then - WARN="-Werror $WARN" +if test "x$configure_enable_werror" != x0; then + if test "x$configure_enable_werror" = x1; then + WARN="-Wall -Werror $WARN" + else + WARN="$WARN $configure_enable_werror" + fi fi + toc_add_make WARN="$WARN" |