diff options
author | Gary E. Miller <gem@rellim.com> | 2018-12-27 14:42:41 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-12-27 14:42:41 -0800 |
commit | 21a28ddec4f8f7bfb8a07f2be7cace6ba6e9a346 (patch) | |
tree | 4b34e463d89c63500f2914fb9db85866c71e75b4 /packet.c | |
parent | 6eccc19ec2e141017111c5c25da63dc5083af106 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |