From 3f2c19469734a712ced0a1b17559d7e3bd744d50 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 17 Mar 2017 17:35:38 +0000 Subject: 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 Reviewed-by: Yong Bakos --- src/scanner.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3