From patchwork Tue Feb 11 14:49:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 37966 Received: (qmail 91612 invoked by alias); 11 Feb 2020 14:49:41 -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 91576 invoked by uid 89); 11 Feb 2020 14:49:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=UD:warning.m4, am_gdb_warnings, Rebuild, warning.m4 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Feb 2020 14:49:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id D0EAB11793E; Tue, 11 Feb 2020 09:49:38 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wb-NvD1Is0A7; Tue, 11 Feb 2020 09:49:38 -0500 (EST) Received: from murgatroyd.Home (75-166-123-50.hlrn.qwest.net [75.166.123.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 8C431117867; Tue, 11 Feb 2020 09:49:38 -0500 (EST) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Add -Wstrict-null-sentinel Date: Tue, 11 Feb 2020 07:49:36 -0700 Message-Id: <20200211144936.23110-1-tromey@adacore.com> MIME-Version: 1.0 Tom de Vries sent a patch to make gdb compile when -Wstrict-null-sentinel. Simon recommended adding this to warning.m4. That is what this patch does. Tested by rebuilding on x86-64 Fedora 30. gdb/ChangeLog 2020-02-11 Tom Tromey * configure: Rebuild. * warning.m4 (AM_GDB_WARNINGS): Add -Wstrict-null-sentinel. gdbserver/ChangeLog 2020-02-11 Tom Tromey * configure: Rebuild for -Wstrict-null-sentinel. Change-Id: I0292304411e19283e877e420958970a19198ab07 --- gdb/ChangeLog | 5 +++++ gdb/configure | 3 ++- gdb/warning.m4 | 3 ++- gdbserver/ChangeLog | 4 ++++ gdbserver/configure | 3 ++- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/gdb/configure b/gdb/configure index a1d15064972..2ce910c808c 100755 --- a/gdb/configure +++ b/gdb/configure @@ -16111,7 +16111,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" case "${host}" in *-*-mingw32*) diff --git a/gdb/warning.m4 b/gdb/warning.m4 index e2b8a43ddbd..75bc21ca426 100644 --- a/gdb/warning.m4 +++ b/gdb/warning.m4 @@ -50,7 +50,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" case "${host}" in *-*-mingw32*) diff --git a/gdbserver/configure b/gdbserver/configure index 4b9d7e3718f..bd0e667af69 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -9815,7 +9815,8 @@ build_warnings="-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" case "${host}" in *-*-mingw32*)