mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
scanner: Reword fallthrough comment to quiet GCC
GCC 7 now requires an explicit comment noting that case statements without a break fall through. We already had one of those in the scanner, but GCC wasn't smart enough to pick it up. Quiet the warning by making the comment less elaborate. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
This commit is contained in:
parent
9452cc53da
commit
3f2c194697
1 changed files with 1 additions and 3 deletions
|
|
@ -740,9 +740,7 @@ start_element(void *data, const char *element_name, const char **atts)
|
|||
switch (arg->type) {
|
||||
case NEW_ID:
|
||||
ctx->message->new_id_count++;
|
||||
|
||||
/* Fall through to OBJECT case. */
|
||||
|
||||
/* fallthrough */
|
||||
case OBJECT:
|
||||
if (interface_name)
|
||||
arg->interface_name = xstrdup(interface_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue