From: Andres Freund Date: Fri, 27 Sep 2019 17:25:08 +0000 (-0700) Subject: Fix implicit-fallthrough compiler warning introduced in 6dda292d4df82. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c967e13f4047ef6f3d91bcb1cff6d746322aff6d;p=postgresql Fix implicit-fallthrough compiler warning introduced in 6dda292d4df82. 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 --- diff --git a/src/backend/utils/adt/jsonb_util.c b/src/backend/utils/adt/jsonb_util.c index f7f79eb965..8b73903160 100644 --- 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