warning under gcc 16.1.0

From: Erik Rijkers <er(at)xs4all(dot)nl>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: warning under gcc 16.1.0
Date: 2026-04-30 20:52:36
Message-ID: 797eb494-e2d0-2fcd-b766-334df58cc2eb@xs4all.nl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Compiling with gcc 16.1.0 gives the following warning and notes:
(horizontally compressed a bit te avoid excessive wrapping)

clauses.c: In function ‘recheck_cast_function_args.isra’:
clauses.c:5139:19: warning: ‘actual_arg_types’ may be used uninitialized
[-Wmaybe-uninitialized]
5139 | rettype = enforce_generic_type_consistency(actual_arg_types,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5140 | declared_arg_types,
| ~~~~~~~~~~~~~~~~~~~
5141 | nargs,
| ~~~~~~
5142 | funcform->prorettype,
| ~~~~~~~~~~~~~~~~~~~~~
5143 | false);
| ~~~~~~
In file included from clauses.c:46:
../../../../src/include/parser/parse_coerce.h:85:17: note: by argument 1
of type ‘const Oid *’ {aka ‘const unsigned int *’} to
‘enforce_generic_type_consistency’ declared here
85 | extern Oid enforce_generic_type_consistency(const Oid
*actual_arg_types,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clauses.c:5125:33: note: ‘actual_arg_types’ declared here
5125 | Oid actual_arg_types[FUNC_MAX_ARGS];
| ^~~~~~~~~~~~~~~~

HTH,

Erik

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2026-04-30 21:21:51 Re: warning under gcc 16.1.0
Previous Message Masahiko Sawada 2026-04-30 20:40:47 Re: Support logical replication of DDLs, take2