projects
/
users
/
gsingh
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9bffa0
)
Fix implicit-fallthrough compiler warning introduced in 6dda292d4df82.
author
Andres Freund
<andres@anarazel.de>
Fri, 27 Sep 2019 17:25:08 +0000
(10:25 -0700)
committer
Andres Freund
<andres@anarazel.de>
Fri, 27 Sep 2019 17:29:25 +0000
(10:29 -0700)
For some reason at least gcc-9 warns about the fallthrough, even
though it otherwise recognizes that elog(ERROR, ...) doesn't return.
Author: Andres Freund
src/backend/utils/adt/jsonb_util.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/jsonb_util.c
b/src/backend/utils/adt/jsonb_util.c
index f7f79eb965a241c352673686c4c4a2efc367228d..8b739031609d223d40d15d25b17c5d23b7207646 100644
(file)
--- a/
src/backend/utils/adt/jsonb_util.c
+++ b/
src/backend/utils/adt/jsonb_util.c
@@
-247,8
+247,10
@@
compareJsonbContainers(JsonbContainer *a, JsonbContainer *b)
break;
case jbvBinary:
elog(ERROR, "unexpected jbvBinary value");
+ break;
case jbvDatetime:
elog(ERROR, "unexpected jbvDatetime value");
+ break;
}
}
else