diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-04 19:42:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-04 19:42:10 +0000 |
commit | aa79a185c9f822e4cd4a5bd773587013ea1e34bd (patch) | |
tree | 86ce55b65de7db05c65dccae498eb163cc971d70 /gdb/configure | |
parent | bbec2603e4954b1ced96e37b7bbdbc306cbea449 (diff) | |
download | gdb-aa79a185c9f822e4cd4a5bd773587013ea1e34bd.zip gdb-aa79a185c9f822e4cd4a5bd773587013ea1e34bd.tar.gz gdb-aa79a185c9f822e4cd4a5bd773587013ea1e34bd.tar.bz2 |
* configure.ac (build_warnings): Use -Wall and
-Wdeclaration-after-statement.
* configure: Regenerated.
* gdbint.texinfo (Compiler Warnings): Update for -Wall use.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/gdb/configure b/gdb/configure index c2199f9..7d4f298 100755 --- a/gdb/configure +++ b/gdb/configure @@ -21114,32 +21114,15 @@ if test "${ERROR_ON_WARNING}" = yes ; then WERROR_CFLAGS="-Werror" fi -# NOTE: Don't add -Wall or -Wunused, they both include -# -Wunused-parameter which reports bogus warnings. -# NOTE: If you add to this list, remember to update +# The entries after -Wno-pointer-sign are disabled warnings which may +# be enabled in the future, which can not currently be used to build +# GDB. +# NOTE: If you change this list, remember to update # gdb/doc/gdbint.texinfo. -build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ --Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ --Wunused-label -Wunused-function -Wno-pointer-sign" - -# GCC supports -Wuninitialized only with -O or -On, n != 0. -if test x${CFLAGS+set} = xset; then - case "${CFLAGS}" in - *"-O0"* ) ;; - *"-O"* ) - build_warnings="${build_warnings} -Wuninitialized" - ;; - esac -else - build_warnings="${build_warnings} -Wuninitialized" -fi +build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ +-Wformat-nonliteral -Wno-pointer-sign \ +-Wno-unused -Wno-switch" -# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs -# -Wunused-function -Wunused-variable -Wunused-value -# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual -# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes -# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -# -Woverloaded-virtual -Winline -Werror" # Check whether --enable-build-warnings or --disable-build-warnings was given. if test "${enable_build_warnings+set}" = set; then enableval="$enable_build_warnings" @@ -21230,8 +21213,8 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$saved_CFLAGS" esac done - echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 -echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 + echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 +echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 fi |