From: Andres Freund Date: Fri, 27 Sep 2019 17:25:08 +0000 (-0700) Subject: Fix implicit-fallthrough compiler warning introduced in 6dda292d4df82. X-Git-Tag: REL_13_BETA1~1411 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c967e13f4047ef6f3d91bcb1cff6d746322aff6d;p=thirdparty%2Fpostgresql.git 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 f7f79eb965a..8b739031609 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