From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) by sourceware.org (Postfix) with ESMTPS id B63C93858D39 for ; Tue, 21 Nov 2023 15:28:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B63C93858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B63C93858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700580495; cv=none; b=mP3HFxEhyR5wn3ZQCaPTwcT7mqH+1gv41em6rt3awJSkvpFWFDngCAVDOZN27Ymd5yWfuqGROh9z1LbYKZgICwIT5fNEJThVhtomYDSiigdfGduC5joNzrnNQGekH1Bi4m6zvRAuE4PyQxMegXEIZIcEmkODJq4hgEtr7VeGtkI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700580495; c=relaxed/simple; bh=+6OWG86YtGtD4U1Z9T24nThtSMY46fr5vcEisr4ehzo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LK0s1tc4Rpsu7Xwusbu8RojnYmWQ8QvdIDFttunq3iDAvhuhl8XK8X1Qw1qu0s4HAuB8a3WCFqzfifcPqBduXNt1xjMKbaFK3ezfoMqxWHgAhfcY66fdE9LjScSIeIA8F6hUcyddPFP46S7yUahpt0SOtG3V1OyQSv6gsv90CBE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5001a.ext.cloudfilter.net ([10.0.29.139]) by cmsmtp with ESMTPS id 5Bq3rOjzMjtZ35Sfirc1Jw; Tue, 21 Nov 2023 15:28:18 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 5SfcrLKj3kTVW5SfcrDyWT; Tue, 21 Nov 2023 15:28:12 +0000 X-Authority-Analysis: v=2.4 cv=a58jSGeF c=1 sm=1 tr=0 ts=655ccc8c a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=BNY50KLci1gA:10 a=Qbun_eYptAEA:10 a=T_Alst9gAAAA:8 a=-AkCL65jTwoovDO7hcAA:9 a=DvZ5ixILWSEuw56YIEpp:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Reply-To:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Content-Type:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=T3cpQ2lz9BFbYbfiHPgJMBXnU2QrlapzLgiPb6J/rHY=; b=vzLZW4UR1Ae4jwnxUOozkheL8o NwcplHv8r3kOJiv1ZxEmFZeF5YF9VS7hhCafSV4dnnUhnfLleOINYglA6pzQ3kCFUIUOkStN1tTEn MJTdKwEsC93/JqJxh6/7rWE/6; Received: from 97-122-77-73.hlrn.qwest.net ([97.122.77.73]:36894 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1r5Sfc-004BpE-0I; Tue, 21 Nov 2023 08:28:12 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey , Pedro Alves Subject: [PATCH v2 2/8] Switch to -Wimplicit-fallthrough=5 Date: Tue, 21 Nov 2023 08:27:29 -0700 Message-ID: <20231121152817.31859-3-tom@tromey.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231121152817.31859-1-tom@tromey.com> References: <20231121152817.31859-1-tom@tromey.com> Reply-To: [PATCH v2 0/8] More C++17 conversions MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.77.73 X-Source-L: No X-Exim-ID: 1r5Sfc-004BpE-0I X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-77-73.hlrn.qwest.net (localhost.localdomain) [97.122.77.73]:36894 X-Source-Auth: tom+tromey.com X-Email-Count: 7 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfG2VHn1IH5XXXEyUq5WMJPRvfv3hzG2OyDJTTkkd3WsV+BVrSxDmKfpCE2OqG70i8dFP6GCRRJuMhBiyv8YgSVRnT9Lcxn/+QADMd4j5toGNKpzc/iZc 0YCsAwAI3ugJQ3TU7PnSFPvhiRXdCEQsWfyrUZtZHKUbKYs8cBxHpo5lQZ7S8Ks5a06gHFhFgrWfrxcVHMRbIH0ov71NWAQFJtg= X-Spam-Status: No, score=-3023.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This changes the various gdb-related directories to use -Wimplicit-fallthrough=5, meaning that only the fallthrough attribute can be used in switches -- special 'fallthrough' comments will no longer be usable. Approved-By: Pedro Alves --- gdb/configure | 2 +- gdbserver/configure | 2 +- gdbsupport/configure | 2 +- gdbsupport/warning.m4 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/configure b/gdb/configure index 7e411cd7668..3dd73b0a2c8 100755 --- a/gdb/configure +++ b/gdb/configure @@ -31161,7 +31161,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \ diff --git a/gdbserver/configure b/gdbserver/configure index dc2ecd884a8..f1292f9b707 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -13697,7 +13697,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \ diff --git a/gdbsupport/configure b/gdbsupport/configure index 3f262a5da78..b501b36373f 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -14162,7 +14162,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \ diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4 index ea573c63c4a..774f0208e9b 100644 --- a/gdbsupport/warning.m4 +++ b/gdbsupport/warning.m4 @@ -44,7 +44,7 @@ build_warnings="-Wall -Wpointer-arith \ -Wno-mismatched-tags \ -Wno-error=deprecated-register \ -Wsuggest-override \ --Wimplicit-fallthrough=3 \ +-Wimplicit-fallthrough=5 \ -Wduplicated-cond \ -Wshadow=local \ -Wdeprecated-copy \ -- 2.41.0