[PATCH/committed,15/20] sim: ppc: fix -Wimplicit-fallthrough warnings

Message ID 20231221070127.19142-15-vapier@gentoo.org
State New
Headers
Series [PATCH/committed,01/20] sim: signal: mark signal callback funcs as noreturn since they don't return |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged

Commit Message

Mike Frysinger Dec. 21, 2023, 7:01 a.m. UTC
  Replace some fall through comments with the attribute.
---
 sim/ppc/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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');