This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[RFC] Change configure.in so -W arnings match reality
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [RFC] Change configure.in so -W arnings match reality
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 21 Feb 2000 22:38:33 +1100
- Organization: Cygnus Solutions
Hello,
The attatched patch changes the default warnings used when compiling GDB
so that they match the current reality (there are many more warnings
that could be fixed but they are for post 5.0).
Thoughts?
Andrew
Mon Feb 21 21:33:31 2000 Andrew Cagney <cagney@b1.cygnus.com>
* configure.in: Change build_warnings to -Wimplicit -Wreturn-type
-Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.4
diff -p -r1.4 configure.in
*** configure.in 2000/02/16 23:35:19 1.4
--- configure.in 2000/02/21 10:42:28
*************** if test "${enable_netrom}" = "yes"; then
*** 404,412 ****
CONFIG_INITS="${CONFIG_INITS} remote-nrom.c"
fi
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
! [build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
case "${enableval}" in
yes) ;;
no) build_warnings="-w";;
--- 404,414 ----
CONFIG_INITS="${CONFIG_INITS} remote-nrom.c"
fi
+ dnl By default, enable only the warnings that shouldn't appear in GDB.
+ dnl Not yet: -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
! [build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith"
case "${enableval}" in
yes) ;;
no) build_warnings="-w";;