public inbox for [email protected]
help / color / mirror / Atom feedwarning under gcc 16.1.0
2+ messages / 2 participants
[nested] [flat]
* warning under gcc 16.1.0
@ 2026-04-30 20:52 Erik Rijkers <[email protected]>
2026-04-30 21:21 ` Re: warning under gcc 16.1.0 Tom Lane <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Erik Rijkers @ 2026-04-30 20:52 UTC (permalink / raw)
To: PostgreSQL Hackers <[email protected]>
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: warning under gcc 16.1.0
2026-04-30 20:52 warning under gcc 16.1.0 Erik Rijkers <[email protected]>
@ 2026-04-30 21:21 ` Tom Lane <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2026-04-30 21:21 UTC (permalink / raw)
To: Erik Rijkers <[email protected]>; +Cc: PostgreSQL Hackers <[email protected]>
Erik Rijkers <[email protected]> writes:
> 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]
I'm inclined to write that off as "buggy early-version compiler".
That code is visibly okay, and no other compiler version has warned
about it.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-04-30 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-04-30 20:52 warning under gcc 16.1.0 Erik Rijkers <[email protected]>
2026-04-30 21:21 ` Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox