From patchwork Thu Dec 21 07:01:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82651 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 87D053882AF0 for ; Thu, 21 Dec 2023 07:02:42 +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 85CF0384CBA9 for ; Thu, 21 Dec 2023 07:02:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85CF0384CBA9 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 85CF0384CBA9 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=1703142123; cv=none; b=hyLnMCKILmWibzTkgnuhmOllG9TNkWpCyzh4aJV0jrNVnFb08aQQsN3F6iDGGKVl8doaGZCYOmzpMOfoGlYTjn5VMZAv3YuDDcGWr9r2riSKSd214s/8IQCFdkkpx27PIDJPqEFeFEoW3N+BDpbEb3H2epvqw7DgZoMfmVcbkUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142123; c=relaxed/simple; bh=P+wfKjljO4ni4WZhL+mPWCHTyB5VqJSrxTo5Lygi0Wo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=DK0p2upkhdXBixBgVmwVsi5HamMpVcQxW8AzHnD7jlPgQhr+ULLTvD/EZr1ZivkAXvpSHseqS3RbQ3TFomb2yADPBm5PBMvHZ39hoP+rYCq3JvBnA5SzwV7YTUwjO3GfV5hs4kMlL0lzAAPz1x+UmKjGJNkOPTjBBEHkl6B5MBs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 35C83340DE6; Thu, 21 Dec 2023 07:02:02 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 17/20] sim: rl78: fix -Wimplicit-fallthrough warnings Date: Thu, 21 Dec 2023 02:01:24 -0500 Message-ID: <20231221070127.19142-17-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 this code was meant to fallthru. --- sim/rl78/rl78.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sim/rl78/rl78.c b/sim/rl78/rl78.c index 8f11c09d87d8..447f56fe02f0 100644 --- a/sim/rl78/rl78.c +++ b/sim/rl78/rl78.c @@ -499,6 +499,7 @@ decode_opcode (void) CLOCKS (3); /* note: adds two clocks, total 5 clocks */ else CLOCKS (2); /* note: adds one clock, total 4 clocks */ + ATTRIBUTE_FALLTHROUGH; case RLO_branch: tprintf ("BRANCH: "); v = GPC ();