diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:29:53 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:59:22 -0500 |
commit | 9362022e951aa23728aee3e5e9e6db453a3259c2 (patch) | |
tree | 0d8cae14aa94629a41cdd2898f402634e431a2b3 /sim/common/hw-properties.c | |
parent | 29f1ffea25b706ab0a03ac2bcf549e22332afefa (diff) | |
download | gdb-9362022e951aa23728aee3e5e9e6db453a3259c2.zip gdb-9362022e951aa23728aee3e5e9e6db453a3259c2.tar.gz gdb-9362022e951aa23728aee3e5e9e6db453a3259c2.tar.bz2 |
sim: common: fix -Wimplicit-fallthrough warnings
Replace some fall through comments with the attribute.
Diffstat (limited to 'sim/common/hw-properties.c')
-rw-r--r-- | sim/common/hw-properties.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/hw-properties.c b/sim/common/hw-properties.c index f1d7a77..42b4d3a 100644 --- a/sim/common/hw-properties.c +++ b/sim/common/hw-properties.c @@ -829,7 +829,7 @@ hw_find_string_array_property (struct hw *me, if (node->sizeof_array == 0 || ((char*)node->array)[node->sizeof_array - 1] != '\0') hw_abort (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'); |