From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128160 invoked by alias); 10 Feb 2020 16:40:37 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 128049 invoked by uid 89); 10 Feb 2020 16:40:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_NUMSUBJECT,SPF_PASS autolearn=ham version=3.3.1 spammy=Wpointerarith, wpointer-arith, Wpointer-arith, wpointerarith X-HELO: mail.efficios.com Received: from mail.efficios.com (HELO mail.efficios.com) (167.114.26.124) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Feb 2020 16:40:34 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 3EE652443F1 for ; Mon, 10 Feb 2020 11:40:33 -0500 (EST) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id o8MMPSaEpTsr; Mon, 10 Feb 2020 11:40:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 3FCD52444C9; Mon, 10 Feb 2020 11:40:32 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 3FCD52444C9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1581352832; bh=Syr+Hn3gUjW9JZULbnYWVzOwJdfwhl5W0LuE0yycxbg=; h=From:To:Date:Message-Id:MIME-Version; b=gHWSXyrMsbrzuMz2rz2f02FF4XJDxFkdWbywVYjxeAbYC9FTW0heWIUT6MhpDv5Lr g1Y7YIPg+Zy1IB5RZ5JGAIARF0milJ8p/YHHurBeJ3DjcjRse1wAuIi2Lg2JnsHYVu wtjCZfrDZQEOiSjzfsNAj+lPL5nYjCN8m1mLzzpfuTKgvsadFqs5wnRfu9U7xTnhZN DMSQ0W5hC1jZtFiBt4A+bDtlIZ2EXe8g/k46jgIEtbNO7GoSX9Q2whSFHJPEskjPPB 4IaC0sd6xv/UrcHYt2LB/2lV5bSfDdhqZ2euU2NcRJCmDhRgLjppP/kofP4w5jXgr5 ND/EbQCs8n0WQ== Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 880l5i0-oZJ8; Mon, 10 Feb 2020 11:40:32 -0500 (EST) Received: from smarchi-efficios.internal.efficios.com (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by mail.efficios.com (Postfix) with ESMTPSA id 0E893244831; Mon, 10 Feb 2020 11:40:32 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 3/3] Add -Wstrict-null-sentinel to gdbsupport/warning.m4 Date: Mon, 10 Feb 2020 16:40:00 -0000 Message-Id: <20200210164024.32445-3-simon.marchi@efficios.com> In-Reply-To: <20200210164024.32445-1-simon.marchi@efficios.com> References: <20200210164024.32445-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2020-02/txt/msg00286.txt.bz2 Commit 85f0dd3ce ("[gdb] Fix -Wstrict-null-sentinel warnings") fixed some violations of -Wstrict-null-sentinel. If we want to enforce this warning, I think we should enable it in our warning.m4 file. gdbsupport/ChangeLog: * warning.m4: Add -Wstrict-null-sentinel. * configure: Re-generate. gdbserver/ChangeLog: * configure: Re-generate. gdb/ChangeLog: * configure: Re-generate. --- gdb/configure | 3 ++- gdbserver/configure | 3 ++- gdbsupport/configure | 3 ++- gdbsupport/warning.m4 | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/configure b/gdb/configure index a1d150649729..2ce910c808ce 100755 --- a/gdb/configure +++ b/gdb/configure @@ -16111,7 +16111,8 @@ build_warnings=3D"-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" =20 case "${host}" in *-*-mingw32*) diff --git a/gdbserver/configure b/gdbserver/configure index 4b9d7e3718fa..bd0e667af69b 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -9815,7 +9815,8 @@ build_warnings=3D"-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" =20 case "${host}" in *-*-mingw32*) diff --git a/gdbsupport/configure b/gdbsupport/configure index 197749b5d0ca..1f7d72cc5852 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -10853,7 +10853,8 @@ build_warnings=3D"-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" =20 case "${host}" in *-*-mingw32*) diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4 index e2b8a43ddbd5..75bc21ca4261 100644 --- a/gdbsupport/warning.m4 +++ b/gdbsupport/warning.m4 @@ -50,7 +50,8 @@ build_warnings=3D"-Wall -Wpointer-arith \ -Wdeprecated-copy \ -Wdeprecated-copy-dtor \ -Wredundant-move \ --Wmissing-declarations" +-Wmissing-declarations \ +-Wstrict-null-sentinel" =20 case "${host}" in *-*-mingw32*) --=20 2.25.0