From 92a9d946da8be990b2660c7f68b5dd0e3dbb1cc2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Dec 2023 01:35:29 -0500 Subject: sim: ppc: fix -Wimplicit-fallthrough warnings 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 4537e89..45dda89 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'); -- cgit v1.1