From d329bac60aca640b2ca702ad5077014403607c58 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 24 Sep 2026 17:57:05 -0400 Subject: [PATCH] Silence another "may be used uninitialized" compiler warning. gcc 12.5.0 complains about this instance in LookupFuncWithArgs(). This is the same type of problem fixed in commit f04781df5, and it's just as obscure why this compiler version picks on this case when others don't. Still, silence it in the same way as f04781df5. Author: Tom Lane Discussion: https://postgr.es/m/1812498.1790279465@sss.pgh.pa.us Backpatch-through: 14 --- src/backend/parser/parse_func.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c index 47cfb0bf65b..72a422ac1f4 100644 --- a/src/backend/parser/parse_func.c +++ b/src/backend/parser/parse_func.c @@ -2261,7 +2261,7 @@ LookupFuncName(List *funcname, int nargs, const Oid *argtypes, bool missing_ok) Oid LookupFuncWithArgs(ObjectType objtype, ObjectWithArgs *func, bool missing_ok) { - Oid argoids[FUNC_MAX_ARGS]; + Oid argoids[FUNC_MAX_ARGS] = {0}; int argcount; int nargs; int i;