From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16280 invoked by alias); 12 Feb 2004 18:52:28 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16262 invoked from network); 12 Feb 2004 18:52:27 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 12 Feb 2004 18:52:27 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 243952B92; Thu, 12 Feb 2004 13:52:25 -0500 (EST) Message-ID: <402BCB69.1080100@gnu.org> Date: Thu, 12 Feb 2004 18:52:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list Content-Type: multipart/mixed; boundary="------------010207080506070209020308" X-SW-Source: 2004-02/txt/msg00321.txt.bz2 This is a multi-part message in MIME format. --------------010207080506070209020308 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 165 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 --------------010207080506070209020308 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1428 2004-02-12 Andrew Cagney * configure.in (build_warnings): Add -Wunused-function. * configure: Re-generate. Index: doc/ChangeLog 2004-02-12 Andrew Cagney * 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 --------------010207080506070209020308--