guideline: Make explicit fallthrough cases
-Wimplicit-fallthrough=2 requires a fallthrough comment or a compiler
to tells gcc that this happens intentionally.
Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
diff --git a/lib/os/json.c b/lib/os/json.c
index 30b4023..3aded8c 100644
--- a/lib/os/json.c
+++ b/lib/os/json.c
@@ -259,7 +259,7 @@
return lexer_number;
}
- /* fallthrough */
+ __fallthrough;
default:
if (isspace(chr)) {
ignore(lexer);
@@ -343,7 +343,7 @@
return -EINVAL;
}
- /* fallthrough */
+ __fallthrough;
case JSON_TOK_STRING:
kv->key = token.start;
kv->key_len = (size_t)(token.end - token.start);