diff options
author | drh <drh@noemail.net> | 2020-08-10 14:18:00 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-08-10 14:18:00 +0000 |
commit | 08b920866073679ca4c22b184240dee27404cb08 (patch) | |
tree | b794fa03c816a384e77ff41f4725a343f8b13df1 /ext/misc/json1.c | |
parent | ed0af52cb1b018708b3c27b1b7b55ed47afbb9eb (diff) | |
download | sqlite-08b920866073679ca4c22b184240dee27404cb08.tar.gz sqlite-08b920866073679ca4c22b184240dee27404cb08.zip |
Fix harmless compiler warnings that surface in newer versions of GCC.
FossilOrigin-Name: 9d670a318381f219b467653f5f9539097808b887ae37291ce13be462dedfb18d
Diffstat (limited to 'ext/misc/json1.c')
-rw-r--r-- | ext/misc/json1.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/misc/json1.c b/ext/misc/json1.c index caf7a99d6..77641064d 100644 --- a/ext/misc/json1.c +++ b/ext/misc/json1.c @@ -42,6 +42,10 @@ SQLITE_EXTENSION_INIT1 # define SMALLEST_INT64 (((sqlite3_int64)-1) - LARGEST_INT64) #endif +#ifndef deliberate_fall_through +# define deliberate_fall_through +#endif + /* ** Versions of isspace(), isalnum() and isdigit() to which it is safe ** to pass signed char values. @@ -460,7 +464,7 @@ static void jsonRenderNode( jsonAppendString(pOut, pNode->u.zJContent, pNode->n); break; } - /* Fall through into the next case */ + /* no break */ deliberate_fall_through } case JSON_REAL: case JSON_INT: { @@ -601,7 +605,7 @@ static void jsonReturn( sqlite3_result_int64(pCtx, i); int_done: break; - int_as_real: /* fall through to real */; + int_as_real: i=0; /* no break */ deliberate_fall_through } case JSON_REAL: { double r; @@ -2304,6 +2308,7 @@ static int jsonEachColumn( } /* For json_each() path and root are the same so fall through ** into the root case */ + /* no break */ deliberate_fall_through } default: { const char *zRoot = p->zRoot; |