summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-12-27 14:42:41 -0800
committerGary E. Miller <gem@rellim.com>2018-12-27 14:42:41 -0800
commit21a28ddec4f8f7bfb8a07f2be7cace6ba6e9a346 (patch)
tree4b34e463d89c63500f2914fb9db85866c71e75b4 /packet.c
parent6eccc19ec2e141017111c5c25da63dc5083af106 (diff)
downloadgpsd-21a28ddec4f8f7bfb8a07f2be7cace6ba6e9a346.tar.gz
Replace gnu-ism: __attribute__ ((fallthrough));
__attribute__ ((fallthrough)); is only in GCC after version 7. Not supported by other cc, and in fact throws warnings on other cc. The comment "/* FALLTHOUGH */" has the same effect when -Wimplicit-fallthrough=X is used, with X being 1, 2, 3, or 4.
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 7e499e28..ab2587c3 100644
--- a/packet.c
+++ b/packet.c
@@ -1062,7 +1062,7 @@ static bool nextstate(struct gps_lexer_t *lexer, unsigned char c)
lexer->state = GROUND_STATE;
break;
}
- __attribute__ ((fallthrough));
+ /* FALLTHROUGH */
#endif /* TSIP_ENABLE */
#ifdef NAVCOM_ENABLE
case NAVCOM_LEADER_1: