summaryrefslogtreecommitdiff
path: root/json.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 /json.c
parent032f7bbf936b6f904e89133ea2e707f4b94a5644 (diff)
downloadgpsd-bdf047fefaf6d158ebd628381471a3047c982015.tar.gz
Suppress GCC 7.3.0 fallthrough warnings in intentional cases.
Diffstat (limited to 'json.c')
-rw-r--r--json.c1
1 files changed, 1 insertions, 0 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;