diff options
| author | Daniel Stone <daniels@collabora.com> | 2017-03-17 17:35:38 +0000 |
|---|---|---|
| committer | Daniel Stone <daniels@collabora.com> | 2017-03-17 17:55:44 +0000 |
| commit | 3f2c19469734a712ced0a1b17559d7e3bd744d50 (patch) | |
| tree | ac7757018cbb2c86dd23a1a51ce0c13fd96c3156 | |
| parent | connection-test: fix assert (diff) | |
| download | wayland-3f2c19469734a712ced0a1b17559d7e3bd744d50.tar wayland-3f2c19469734a712ced0a1b17559d7e3bd744d50.tar.gz wayland-3f2c19469734a712ced0a1b17559d7e3bd744d50.tar.bz2 wayland-3f2c19469734a712ced0a1b17559d7e3bd744d50.tar.lz wayland-3f2c19469734a712ced0a1b17559d7e3bd744d50.tar.xz wayland-3f2c19469734a712ced0a1b17559d7e3bd744d50.tar.zst wayland-3f2c19469734a712ced0a1b17559d7e3bd744d50.zip | |
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>
| -rw-r--r-- | src/scanner.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/scanner.c b/src/scanner.c index a6c334f..517068c 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -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); |
