From patchwork Thu Dec 21 07:01:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82650 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 04CD63870844 for ; Thu, 21 Dec 2023 07:02:37 +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 93781384DED6 for ; Thu, 21 Dec 2023 07:01:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 93781384DED6 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 93781384DED6 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=1703142120; cv=none; b=l32or4xZuQvujdm27AeQnGakiwvf3HIzXdq7B2CzbPbp+3hJkl38a+2l4io+Jjr2HK6HlxEKGUMQTTmRpB/ztZHXRCCFBRRBAyrjuWq8GYJq+OJdxFW43NHYv+P9OKcCFVZgL1uK7nbuCrOfXARuYFAf03LlUaYAH0tq489D0uo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703142120; c=relaxed/simple; bh=BPv92K2xnfON3eUtn3vdRJN8hUC2QbJEBcXWU7xHBrM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Jq7Wn+OHg1cyMYWOR/m9FWmrKZaZtYYLhcCPy3GEC9wHpEtmCRswb99n85kU9GlDHcXi9KKLrYSBgcG91FTElyWrANK4UFgebz9PbIGRvf1GnuO4yrl2iaedV8LGEJlv1wNkaY0xo89nwlkRB5tgp+d4DUeGnY7n43WLv+pbukY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 16BBB340DE6; Thu, 21 Dec 2023 07:01:58 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 15/20] sim: ppc: fix -Wimplicit-fallthrough warnings Date: Thu, 21 Dec 2023 02:01:22 -0500 Message-ID: <20231221070127.19142-15-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 Replace some fall through comments with the attribute. --- sim/ppc/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/ppc/device.c b/sim/ppc/device.c index 4537e89b38dc..45dda89caa83 100644 --- a/sim/ppc/device.c +++ b/sim/ppc/device.c @@ -1453,7 +1453,7 @@ device_find_string_array_property(device *me, if (node->sizeof_array == 0 || ((char*)node->array)[node->sizeof_array - 1] != '\0') device_error(me, "property %s invalid for string array", property); - /* FALL THROUGH */ + ATTRIBUTE_FALLTHROUGH; case string_array_property: ASSERT(node->sizeof_array > 0); ASSERT(((char*)node->array)[node->sizeof_array - 1] == '\0');