pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Hans Buschmann <buschmann@nidsa.net>
Cc: Erik Rijkers <er@xs4all.nl>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: AW: PG19beta1: GCC 16.1.1 warning: ‘actual_arg_types’ may be used uninitialized in clauses.c
Date: Thu, 24 Sep 2026 15:51:05 -0400
Message-ID: <1812498.1790279465@sss.pgh.pa.us> (raw)
In-Reply-To: <ajQdMUJTOGhoNV8x@nathan>
References: <ajQXL6rEkHottp3q@nathan>
	<ajQXxk0eohQ8BNe9@alvherre.pgsql>
	<ajQdMUJTOGhoNV8x@nathan>

Nathan Bossart <nathandbossart@gmail.com> writes:
> On Thu, Jun 18, 2026 at 06:08:12PM +0200, Álvaro Herrera wrote:
>> I'd stop at 14 and call it a day.  It doesn't prevent building, which is
>> IIRC the criteria we use for the older branches.

> WFM.  Committed, thanks.

Since I updated 'mamba' to NetBSD 11 (which has gcc 12.5.0),
it's been spewing a closely related warning:

parse_func.c: In function 'LookupFuncWithArgs':
parse_func.c:2457:15: warning: 'argoids' may be used uninitialized [-Wmaybe-uninitialized]
 2457 |     oid = LookupFuncNameInternal(func->args_unspecified ? objtype : OBJECT_ROUTINE,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2458 |                                  func->objname, nargs, argoids,
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2459 |                                  false, missing_ok,
      |                                  ~~~~~~~~~~~~~~~~~~
 2460 |                                  &lookupError);
      |                                  ~~~~~~~~~~~~~
parse_func.c:2234:1: note: by argument 4 of type 'const Oid *' {aka 'const unsigned int *'} to 'LookupFuncNameInternal' declared here
 2234 | LookupFuncNameInternal(ObjectType objtype, List *funcname,
      | ^~~~~~~~~~~~~~~~~~~~~~
parse_func.c:2395:33: note: 'argoids' declared here
 2395 |     Oid             argoids[FUNC_MAX_ARGS];
      |                     ^~~~~~~

Presumably this could be silenced in the same way as in f04781df5.
I haven't troubled so far because I don't see any other BF animals
producing the same warning, but perhaps we should silence this one
too?

			regards, tom lane






view thread (5+ messages)  latest in thread

Message-ID: <1812498.1790279465@sss.pgh.pa.us>
Permalink:  ../1812498.1790279465@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1812498.1790279465@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, nathandbossart@gmail.com, alvherre@kurilemu.de, buschmann@nidsa.net, er@xs4all.nl
  Subject: Re: AW: PG19beta1: GCC 16.1.1 warning: ‘actual_arg_types’ may be used uninitialized in clauses.c
  In-Reply-To: <1812498.1790279465@sss.pgh.pa.us>

* 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