summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2018-06-15 12:46:44 -0400
committerEric S. Raymond <esr@thyrsus.com>2018-06-15 12:46:44 -0400
commitbdf047fefaf6d158ebd628381471a3047c982015 (patch)
treec0cbf51b82652c6e53909cc064513cae0ae59e79 /packet.c
parent032f7bbf936b6f904e89133ea2e707f4b94a5644 (diff)
downloadgpsd-bdf047fefaf6d158ebd628381471a3047c982015.tar.gz
Suppress GCC 7.3.0 fallthrough warnings in intentional cases.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c2
1 files changed, 1 insertions, 1 deletions
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: