From: Mike Frysinger Date: Thu, 21 Dec 2023 06:35:29 +0000 (-0500) Subject: sim: ppc: fix -Wimplicit-fallthrough warnings X-Git-Tag: binutils-2_42~448 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92a9d946da8be990b2660c7f68b5dd0e3dbb1cc2;p=thirdparty%2Fbinutils-gdb.git sim: ppc: fix -Wimplicit-fallthrough warnings Replace some fall through comments with the attribute. --- diff --git a/sim/ppc/device.c b/sim/ppc/device.c index 4537e89b38d..45dda89caa8 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');