diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:35:29 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:23 -0500 |
commit | 92a9d946da8be990b2660c7f68b5dd0e3dbb1cc2 (patch) | |
tree | 75ba2afe6da7e43d6e331b27056b6bf90e948770 /sim/ppc | |
parent | 77b3c4f66647058625d92b866a7ef689ee75557e (diff) | |
download | fsf-binutils-gdb-92a9d946da8be990b2660c7f68b5dd0e3dbb1cc2.zip fsf-binutils-gdb-92a9d946da8be990b2660c7f68b5dd0e3dbb1cc2.tar.gz fsf-binutils-gdb-92a9d946da8be990b2660c7f68b5dd0e3dbb1cc2.tar.bz2 |
sim: ppc: fix -Wimplicit-fallthrough warnings
Replace some fall through comments with the attribute.
Diffstat (limited to 'sim/ppc')
-rw-r--r-- | sim/ppc/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |