summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json.c1
-rw-r--r--packet.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/json.c b/json.c
index 81a3bac5..c97fd161 100644
--- a/json.c
+++ b/json.c
@@ -557,6 +557,7 @@ static int json_internal_read_object(const char *cp,
}
break;
}
+ __attribute__ ((fallthrough));
case post_array:
if (isspace((unsigned char) *cp))
continue;
diff --git a/packet.c b/packet.c
index a04a5b5b..63351d39 100644
--- a/packet.c
+++ b/packet.c
@@ -1011,7 +1011,7 @@ static bool nextstate(struct gps_lexer_t *lexer, unsigned char c)
lexer->state = GROUND_STATE;
break;
}
- // FALL-THRU!!!!! no break here
+ __attribute__ ((fallthrough));
#endif /* TSIP_ENABLE */
#ifdef NAVCOM_ENABLE
case NAVCOM_LEADER_1: