]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: ppc: fix -Wimplicit-fallthrough warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:35:29 +0000 (01:35 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 21 Dec 2023 06:59:23 +0000 (01:59 -0500)
Replace some fall through comments with the attribute.

sim/ppc/device.c

index 4537e89b38dcf08e13958f4c41f74ae275e469cf..45dda89caa83b2b75ce92f71c13d7481b2198c35 100644 (file)
@@ -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');