pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Hans Buschmann <buschmann@nidsa.net>
To: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: PG19beta1: GCC 16.1.1 warning: ‘actual_arg_types’ may be used uninitialized in clauses.c
Date: Thu, 4 Jun 2026 14:42:18 +0000
Message-ID: <6c52a1a6612948519468d46cb224a8c4@nidsa.net> (raw )
When compiling PG19 beta1 on Fedora 44 I got the following warning:
839/2360] Compiling C object src/backend/postgres_lib.a.p/optimizer_util_clauses.c.o
../src/backend/optimizer/util/clauses.c: In function ‘recheck_cast_function_args.isra’:
../src/backend/optimizer/util/clauses.c:5152:19: warning: ‘actual_arg_types’ may be used uninitialized [-Wmaybe-uninitialized]
5152 | rettype = enforce_generic_type_consistency(actual_arg_types,
This is still the same as reported in BUG 19485
https://www.postgresql.org/message-id/19485-2b03231a775756f1%40postgresql.org
configuration/full message attached
Hans Buschmann
Attachments:
compile_warning_19_b1_260604.txt (text/plain, 4.8K) download
...
postgresql 19beta1
Data layout
data block size : 8 kB
WAL block size : 8 kB
segment size : 1 GB
System
host system : linux x86_64
build system : linux x86_64
Compiler
linker : ld.bfd
C compiler : gcc 16.1.1
C++ compiler : gcc 16.1.1
Compiler Flags
CPP FLAGS : -D_GNU_SOURCE
C FLAGS, functional : -fno-strict-aliasing -fwrapv -fexcess-precision=standard
C FLAGS, warnings : -Wpointer-arith -Werror=vla -Wmissing-format-attribute -Wcast-function-type -Wshadow=compatible-local -Wformat-security -Wmissing-prototypes -Wold-style-declaration -Wold-style-definition -Wstrict-prototypes -Wimplicit-fallthrough=5 -Wdeclaration-after-statement -Wmissing-variable-declarations -Wno-format-truncation -Wno-stringop-truncation
C FLAGS, modules : -fvisibility=hidden
C FLAGS, user specified :
LD FLAGS :
C++ FLAGS, functional : -fno-strict-aliasing -fwrapv -fexcess-precision=standard
C++ FLAGS, warnings : -Wpointer-arith -Werror=vla -Wmissing-format-attribute -Wcast-function-type -Wshadow=compatible-local -Wformat-security -Wimplicit-fallthrough=5 -Wno-format-truncation -Wno-stringop-truncation
C++ FLAGS, user specified:
Programs
bison : /usr/bin/bison 3.8.2
dtrace : NO
flex : /usr/bin/flex 2.6.4
External libraries
bonjour : NO
bsd_auth : NO
docs : YES
docs_pdf : NO
gss : NO
icu : YES 77.1
ldap : NO
libcurl : NO
libnuma : YES 2.0.19
liburing : YES 2.13
libxml : YES 2.12.10
libxslt : NO
llvm : NO
lz4 : YES 1.10.0
nls : YES
openssl : YES 3.5.5
pam : NO
plperl : YES 5.42.2
plpython : YES 3.14
pltcl : NO
readline : YES 8.3
selinux : YES 3.10
systemd : YES 259
uuid : YES 1.6.2
zlib : YES 1.3.1.zlib-ng
zstd : YES 1.5.7
User defined options
pgport : 5431
prefix : /usr/local/pgbeta
uuid : ossp
Found ninja-1.13.2 at /usr/bin/ninja
[root@fedora pg19_b1]# cd build
[root@fedora build]# ninja
[839/2360] Compiling C object src/backend/postgres_lib.a.p/optimizer_util_clauses.c.o
../src/backend/optimizer/util/clauses.c: In function ‘recheck_cast_function_args.isra’:
../src/backend/optimizer/util/clauses.c:5152:19: warning: ‘actual_arg_types’ may be used uninitialized [-Wmaybe-uninitialized]
5152 | rettype = enforce_generic_type_consistency(actual_arg_types,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5153 | declared_arg_types,
| ~~~~~~~~~~~~~~~~~~~
5154 | nargs,
| ~~~~~~
5155 | funcform->prorettype,
| ~~~~~~~~~~~~~~~~~~~~~
5156 | false);
| ~~~~~~
In file included from ../src/backend/optimizer/util/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,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/backend/optimizer/util/clauses.c:5138:33: note: ‘actual_arg_types’ declared here
5138 | Oid actual_arg_types[FUNC_MAX_ARGS];
| ^~~~~~~~~~~~~~~~
[2360/2360] Linking target src/interfaces/ecpg/test/pg_regress_ecpg
[root@fedora build]#
Message-ID: <6c52a1a6612948519468d46cb224a8c4@nidsa.net>
Permalink: ../6c52a1a6612948519468d46cb224a8c4@nidsa.net/
Also on: postgresql.org/message-id/6c52a1a6612948519468d46cb224a8c4@nidsa.net
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: buschmann@nidsa.net
Subject: Re: PG19beta1: GCC 16.1.1 warning: ‘actual_arg_types’ may be used uninitialized in clauses.c
In-Reply-To: <6c52a1a6612948519468d46cb224a8c4@nidsa.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox