mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
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.
This commit is contained in:
parent
fe8eaa5442
commit
3c5ff36aba
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user