mirror of
https://github.com/postgres/postgres.git
synced 2026-06-21 16:11:13 -04:00
Silence "may be used uninitialized" compiler warning.
Newer gcc warns that this "actual_arg_types" variable may be used uninitialized, but visual inspection indicates there's no bug. To silence the warning, initialize the variable to zeros. Bug: #19485 Reported-by: Hans Buschmann <buschmann@nidsa.net> Tested-by: Erik Rijkers <er@xs4all.nl> Tested-by: Hans Buschmann <buschmann@nidsa.net> Reviewed-by: Tristan Partin <tristan@partin.io> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/19485-2b03231a775756f1%40postgresql.org Discussion: https://postgr.es/m/6c52a1a6612948519468d46cb224a8c4%40nidsa.net
This commit is contained in:
@@ -4385,7 +4385,7 @@ recheck_cast_function_args(List *args, Oid result_type,
|
||||
{
|
||||
Form_pg_proc funcform = (Form_pg_proc) GETSTRUCT(func_tuple);
|
||||
int nargs;
|
||||
Oid actual_arg_types[FUNC_MAX_ARGS];
|
||||
Oid actual_arg_types[FUNC_MAX_ARGS] = {0};
|
||||
Oid declared_arg_types[FUNC_MAX_ARGS];
|
||||
Oid rettype;
|
||||
ListCell *lc;
|
||||
|
||||
Reference in New Issue
Block a user