Add JQ_FALLTHROUGH and use it to quiet warnings

This commit is contained in:
Nicolas Williams authored and Emanuele Torre committed 2023-07-30 04:25:54 +02:00
1 parent a6eb055c47
commit c8b30dff4a
4 files changed
+22 -2

No files matched your search

+2 -1
View File
@@ -575,6 +575,7 @@ jv jq_next(jq_state *jq) {
case STOREVN:
stack_save(jq, pc - 1, stack_get_pos(jq));
JQ_FALLTHROUGH;
case STOREV: {
uint16_t level = *pc++;
uint16_t v = *pc++;
@@ -742,7 +743,7 @@ jv jq_next(jq_state *jq) {
}
stack_push(jq, container);
stack_push(jq, jv_number(-1));
// fallthrough
JQ_FALLTHROUGH;
}
case ON_BACKTRACK(EACH):
case ON_BACKTRACK(EACH_OPT): {