Fix implicit-fallthrough compiler warning introduced in 6dda292d4df82.
authorAndres Freund <andres@anarazel.de>
Fri, 27 Sep 2019 17:25:08 +0000 (10:25 -0700)
committerAndres 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

index f7f79eb965a241c352673686c4c4a2efc367228d..8b739031609d223d40d15d25b17c5d23b7207646 100644 (file)
@@ -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