From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31843 invoked by alias); 15 Feb 2004 23:28:26 -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 31795 invoked from network); 15 Feb 2004 23:28:14 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.170.238) by sources.redhat.com with SMTP; 15 Feb 2004 23:28:14 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 129892B97; Sun, 15 Feb 2004 18:28:00 -0500 (EST) Message-ID: <4030007F.6010407@gnu.org> Date: Sun, 15 Feb 2004 23:28: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: Eli Zaretskii , gdb-patches@sources.redhat.com Subject: Re: [patch/rfc; rfa:doco] Add -Wunused-function to -Werror list References: <402BCB69.1080100@gnu.org> Content-Type: multipart/mixed; boundary="------------040904010401000306010803" X-SW-Source: 2004-02/txt/msg00392.txt.bz2 This is a multi-part message in MIME format. --------------040904010401000306010803 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 489 > Hello, > > This finally adds the -Wunused-function warning to the list of warnings enforced with -Werror. It also mentions it in the doco. I've checked in the config change, Eli, how's the doco? Andrew > 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. > --------------040904010401000306010803 Content-Type: message/rfc822; name="mailbox-message://ac131313@movemail/fsf/gdb/patches#637159" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mailbox-message://ac131313@movemail/fsf/gdb/patches#637159" Content-length: 3747 X-Mozilla-Status2: 10000000 Return-Path: Delivered-To: cagney@localhost.redhat.com Received: from localhost (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7D6302B92 for ; Thu, 12 Feb 2004 13:55:39 -0500 (EST) Envelope-to: cagney@gnu.org Delivery-date: Thu, 12 Feb 2004 13:50:38 -0500 Received: from fencepost.gnu.org by localhost with IMAP (fetchmail-6.2.4) for cagney@localhost (single-drop); Thu, 12 Feb 2004 13:55:39 -0500 (EST) Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.24) id 1ArLv3-0003GH-5G for cagney@gnu.org; Thu, 12 Feb 2004 13:50:37 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ArLx2-0003iv-Sq for cagney@gnu.org; Thu, 12 Feb 2004 13:53:13 -0500 Received: from [216.129.200.20] (helo=localhost.redhat.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArLwy-0003gs-JZ for cagney@gnu.org; Thu, 12 Feb 2004 13:52:36 -0500 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 13:52:25 -0500 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en 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-Spam-Status: No, hits=-0.6 required=5.0 tests=PATCH_UNIFIED_DIFF,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) 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-- --------------040904010401000306010803--