From patchwork Thu Dec 21 07:01:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82643 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 37D39386F01D for ; Thu, 21 Dec 2023 07:02:13 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id BCB91384DEE7 for ; Thu, 21 Dec 2023 07:01:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BCB91384DEE7 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 BCB91384DEE7 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142100; cv=none; b=FszvWI+WJUOGTNOILn+AoxPEzUjR0lqWEck38azQ4GFcaayzPyOw04b+deFgxx8iDTFdUl2j05oFNlDZulrYxfoWlGeQjZb4WBMRPMSMi1ZIuqJRWPLDyeyAQAfId/NaZPPOQmS/VoR2C9KAUA2BOWYWd6Ruvz/3T+oOWCTzkEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142100; c=relaxed/simple; bh=NLxHE+NXbAHnadnRpF+o8BQZWJYZm1cHSOx10FIxUfk=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=ZVGhVlUEwpQI4rcxRUJD0DKoK39mQrwLeSQdNBXH7ve8j8oLpsKhVi31FpZEirK4o4Uw5+yzE7dTFQYiE5Xq6x6JxZVEaIW3gku71csUdfFC77oF1+GhouxmeRNc2+ryeKEm1apjKlQV3UiZ2Stnzk7Xr9dLl5RisBVtcp3yvno= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 6CBA0340943; Thu, 21 Dec 2023 07:01:39 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 06/20] sim: avr: fix -Wimplicit-fallthrough warnings Date: Thu, 21 Dec 2023 02:01:13 -0500 Message-ID: <20231221070127.19142-6-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, 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 Replace some fall through comments with the attribute. --- sim/avr/interp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/avr/interp.c b/sim/avr/interp.c index eef4ad96ec2f..377398e94e26 100644 --- a/sim/avr/interp.c +++ b/sim/avr/interp.c @@ -896,7 +896,7 @@ step_once (SIM_CPU *cpu) case OP_reti: sram[SREG] |= SREG_I; - /* Fall through */ + ATTRIBUTE_FALLTHROUGH; case OP_ret: { const struct avr_sim_state *state = AVR_SIM_STATE (CPU_STATE (cpu));