summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2017-03-17 17:35:38 +0000
committerDaniel Stone <daniels@collabora.com>2017-03-17 17:55:44 +0000
commit3f2c19469734a712ced0a1b17559d7e3bd744d50 (patch)
treeac7757018cbb2c86dd23a1a51ce0c13fd96c3156
parent9452cc53da5bef65a38e4d5a66a838c61e49f6cd (diff)
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.c4
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);