This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc; rfa:doco] Add -Wunused-function to -Werror list
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 12 Feb 2004 13:52:25 -0500
- Subject: [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list
Hello,
This finally adds the -Wunused-function warning to the list of warnings
enforced with -Werror. It also mentions it in the doco.
comments, doco ok?
Andrew
2004-02-12 Andrew Cagney <cagney@redhat.com>
* configure.in (build_warnings): Add -Wunused-function.
* configure: Re-generate.
Index: doc/ChangeLog
2004-02-12 Andrew Cagney <cagney@redhat.com>
* gdbint.texinfo (Coding): Mention -Wunused-function.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.144
diff -u -r1.144 configure.in
--- configure.in 8 Feb 2004 17:53:08 -0000 1.144
+++ configure.in 12 Feb 2004 18:49:08 -0000
@@ -1008,7 +1008,7 @@
# gdb/doc/gdbint.texinfo.
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
--Wunused-label"
+-Wunused-label -Wunused-function"
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
# -Wunused-function -Wunused-variable -Wunused-value
# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.185
diff -u -r1.185 gdbint.texinfo
--- doc/gdbint.texinfo 12 Feb 2004 17:46:40 -0000 1.185
+++ doc/gdbint.texinfo 12 Feb 2004 18:49:10 -0000
@@ -5154,6 +5154,8 @@
break;
@}
@end smallexample
+
+@item -Wunused-function
@end table
@emph{Pragmatics: Due to the way that @value{GDBN} is implemented most