From cc7401d5ca498a84d9b47fd2e01cebd8e830e558 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 27 Mar 2022 18:32:40 -0400 Subject: Fix up compiler warnings/errors from f4fb45d15. Per early buildfarm returns. --- src/backend/parser/parse_expr.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/backend/parser/parse_expr.c') diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index 6b93a76bca6..781c9709e6d 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -3415,7 +3415,6 @@ transformJsonConstructorOutput(ParseState *pstate, JsonOutput *output, if (!OidIsValid(returning->typid)) { ListCell *lc; - bool have_json = false; bool have_jsonb = false; foreach(lc, args) @@ -3423,7 +3422,6 @@ transformJsonConstructorOutput(ParseState *pstate, JsonOutput *output, Node *expr = lfirst(lc); Oid typid = exprType(expr); - have_json |= typid == JSONOID; have_jsonb |= typid == JSONBOID; if (have_jsonb) @@ -3437,8 +3435,6 @@ transformJsonConstructorOutput(ParseState *pstate, JsonOutput *output, } else { - /* Note: this includes the have_json case */ - /* XXX TEXT is default by the standard, but we return JSON */ returning->typid = JSONOID; returning->format->format_type = JS_FORMAT_JSON; -- cgit v1.2.3