From patchwork Thu Dec 21 07:01:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82655 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1FD213870C37 for ; Thu, 21 Dec 2023 07:02:58 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 24DDC384DB5E for ; Thu, 21 Dec 2023 07:01:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 24DDC384DB5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 24DDC384DB5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142111; cv=none; b=cN9faK8HAmh/y29IiaESlc5Ndmz8n/kVz7ecBU9fyuNPyeOBPMoImAhkB+PE5Lla8Kb7HXpkUDrxe/Ux4a4ei99u98M07+RwrrypH/Jq3t93hI8gLADs7vsT35m3fIzj77wu7tym/COPRK9fkVxUmqCgszMZVbvbaeNjTNBUs6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142111; c=relaxed/simple; bh=la/nN4WqvxJRIjhCfGXcBWJh0Ln9junesHCaumiShtI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=qvi/jqSGKj+wbeR8+0iWTDTZBgjWthpQv2IlhgwZgaaK/YEIzAS/6w6MTc7lByLhDs14gU5rz2kBQhZHHbnw4sREd5bSeEg/f7A1o37mIj2lUdMB0teTmWmQpH+OIIGLYpIDG3OjHvNSlXLdzuNwfRl4Lj3aHaNne3/P9uJwXlA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id CA892340DE6; Thu, 21 Dec 2023 07:01:49 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 11/20] sim: m68hc11: fix -Wimplicit-fallthrough warnings Date: Thu, 21 Dec 2023 02:01:18 -0500 Message-ID: <20231221070127.19142-11-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221070127.19142-1-vapier@gentoo.org> References: <20231221070127.19142-1-vapier@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Seems like these register operations intended on falling thru. --- sim/m68hc11/dv-m68hc11sio.c | 1 + sim/m68hc11/dv-m68hc11spi.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sim/m68hc11/dv-m68hc11sio.c b/sim/m68hc11/dv-m68hc11sio.c index d5ecbe4f822e..03b44613c180 100644 --- a/sim/m68hc11/dv-m68hc11sio.c +++ b/sim/m68hc11/dv-m68hc11sio.c @@ -523,6 +523,7 @@ m68hc11sio_io_read_buffer (struct hw *me, case M6811_SCSR: controller->rx_clear_scsr = m68hc11_cpu->ios[M6811_SCSR] & (M6811_RDRF | M6811_IDLE | M6811_OR | M6811_NF | M6811_FE); + ATTRIBUTE_FALLTHROUGH; case M6811_BAUD: case M6811_SCCR1: diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c index e552fd5de9a8..ac44e6ed7e2f 100644 --- a/sim/m68hc11/dv-m68hc11spi.c +++ b/sim/m68hc11/dv-m68hc11spi.c @@ -405,6 +405,7 @@ m68hc11spi_io_read_buffer (struct hw *me, case M6811_SPSR: controller->rx_clear_scsr = m68hc11_cpu->ios[M6811_SCSR] & (M6811_SPIF | M6811_WCOL | M6811_MODF); + ATTRIBUTE_FALLTHROUGH; case M6811_SPCR: val = m68hc11_cpu->ios[base];