From patchwork Mon Jun 6 21:33:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 12817 Received: (qmail 119968 invoked by alias); 6 Jun 2016 21:34:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 119948 invoked by uid 89); 6 Jun 2016 21:34:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL, BAYES_00, FSL_HELO_HOME, RCVD_IN_DNSWL_NONE, SPF_PASS, UNWANTED_LANGUAGE_BODY autolearn=no version=3.3.2 spammy= X-HELO: gproxy9-pub.mail.unifiedlayer.com Received: from gproxy9-pub.mail.unifiedlayer.com (HELO gproxy9-pub.mail.unifiedlayer.com) (69.89.20.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Mon, 06 Jun 2016 21:33:47 +0000 Received: (qmail 20626 invoked by uid 0); 6 Jun 2016 21:33:46 -0000 Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy9.mail.unifiedlayer.com with SMTP; 6 Jun 2016 21:33:46 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id 3ZZg1t01y2f2jeq01ZZjVk; Mon, 06 Jun 2016 15:33:43 -0600 X-Authority-Analysis: v=2.1 cv=ff4+lSgF c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=PnD2wP_eR3oA:10 a=-N9Dh3nx2ZYA:10 a=pD_ry4oyNxEA:10 a=zstS-IiYAAAA:8 a=qUXFsv20AAAA:8 a=5t64IDTS-8c1IlUNmlgA:9 a=4G6NA9xxw8l3yy4pmD5M:22 a=9MODbo6-FXLeArg8YEg9:22 Received: from [65.128.48.199] (port=46482 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bA29W-0006Xd-Fm; Mon, 06 Jun 2016 15:33:42 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 6/6] Add -Wunused-but-set-* to build Date: Mon, 6 Jun 2016 15:33:32 -0600 Message-Id: <1465248812-23902-7-git-send-email-tom@tromey.com> In-Reply-To: <1465248812-23902-1-git-send-email-tom@tromey.com> References: <1465248812-23902-1-git-send-email-tom@tromey.com> X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 65.128.48.199 authed with tom+tromey.com} X-Exim-ID: 1bA29W-0006Xd-Fm X-Source-Sender: (bapiya.Home) [65.128.48.199]:46482 X-Source-Auth: tom+tromey.com X-Email-Count: 0 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== This adds -Wunused-but-set-variable and -Wunused-but-set-parameter to configure. 2016-06-06 Tom Tromey * configure: Rebuild. * warning.m4 (AM_GDB_WARNINGS) : Add -Wunused-but-set-parameter, -Wunused-but-set-variable. 2016-06-06 Tom Tromey * configure: Rebuild. --- gdb/ChangeLog | 6 ++++++ gdb/configure | 2 +- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/configure | 2 +- gdb/warning.m4 | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eec280d..9c0ff17 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2016-06-06 Tom Tromey + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS) : Add + -Wunused-but-set-parameter, -Wunused-but-set-variable. + +2016-06-06 Tom Tromey + * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr". (mips_o32_push_dummy_call): Remove "stack_used_p". * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove diff --git a/gdb/configure b/gdb/configure index 60ea884..957d0e4 100755 --- a/gdb/configure +++ b/gdb/configure @@ -14242,7 +14242,7 @@ fi build_warnings="-Wall -Wpointer-arith \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts \ --Wempty-body" +-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable" # Now add in C and C++ specific options, depending on mode. if test "$enable_build_with_cxx" = "yes"; then diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 079507a..8bef0bd 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2016-06-06 Tom Tromey + + * configure: Rebuild. + 2016-06-02 Jon Turney * win32-low.c (win32_create_inferior): Add pointer casts for C++. diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 746218e..2926deb 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -6291,7 +6291,7 @@ fi build_warnings="-Wall -Wpointer-arith \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts \ --Wempty-body" +-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable" # Now add in C and C++ specific options, depending on mode. if test "$enable_build_with_cxx" = "yes"; then diff --git a/gdb/warning.m4 b/gdb/warning.m4 index 55f1eb3..8d7ce68 100644 --- a/gdb/warning.m4 +++ b/gdb/warning.m4 @@ -39,7 +39,7 @@ fi build_warnings="-Wall -Wpointer-arith \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts \ --Wempty-body" +-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable" # Now add in C and C++ specific options, depending on mode. if test "$enable_build_with_cxx" = "yes"; then