summaryrefslogtreecommitdiff
path: root/json.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 /json.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 'json.c')
-rw-r--r--json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json.c b/json.c
index fca2a7d5..b797b1a2 100644
--- a/json.c
+++ b/json.c
@@ -553,7 +553,7 @@ static int json_internal_read_object(const char *cp,
}
break;
}
- __attribute__ ((fallthrough));
+ /* FALLTHROUGH */
case post_element:
if (isspace((unsigned char) *cp))
continue;