aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-04-05 10:58:30 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-04-05 10:58:30 -0400
commit3c5ff36aba8a3df19967d0ddc1249c63417bb9b0 (patch)
treef0a69e7e71669aa24edf2558aeedc3dcbd3bc97a /src/backend/parser/parse_expr.c
parentfe8eaa54420cbb384bd5ad179495bb9774b6b48f (diff)
downloadpostgresql-3c5ff36aba8a3df19967d0ddc1249c63417bb9b0.tar.gz
postgresql-3c5ff36aba8a3df19967d0ddc1249c63417bb9b0.zip
Suppress "variable may be used uninitialized" warning.
Buildfarm member caiman is showing this, which surprises me because it's very late-model gcc (14.0.1) and ought to be smart enough to know that elog(ERROR) doesn't return. But we're likely to see the same from stupider compilers too, so add a dummy initialization in our usual style.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r--src/backend/parser/parse_expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c
index 2f87255c470..56a531de8db 100644
--- a/src/backend/parser/parse_expr.c
+++ b/src/backend/parser/parse_expr.c
@@ -4276,6 +4276,7 @@ transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *func)
break;
default:
elog(ERROR, "invalid JsonFuncExpr op %d", (int) func->op);
+ default_format = JS_FORMAT_DEFAULT; /* keep compiler quiet */
break;
}