Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wY3Gw-0002Jm-1A for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jun 2026 14:54:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wY3Gs-000m8D-3B for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jun 2026 14:54:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wY3Gs-000m84-2E for pgsql-hackers@lists.postgresql.org; Fri, 12 Jun 2026 14:54:10 +0000 Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wY3Gq-0000000027g-0CqX for pgsql-hackers@postgresql.org; Fri, 12 Jun 2026 14:54:10 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.stl.internal (Postfix) with ESMTP id 3D4A27A013F; Fri, 12 Jun 2026 10:54:06 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Fri, 12 Jun 2026 10:54:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1781276046; x= 1781362446; bh=BBCSUrN+AC/94kDfRItSJQBCs0t/XALdBXiCxm8EgsI=; b=Z 11v+xmQ/Y1WG/0j19vHiEKnwjf0QK4D+Ye+CQvFhlEM//iOYPoXEttl46z7bI1hJ NWKIDnil2mFzIZ9460hl/y3yZYCmihitdcSr3DLet9lOvtFiMDY1RLUsAsCrZMSy FuJA4CogMeSqkYzvltWcmWulSd3BsXchcpfbTpN5rJKy0Zyzaw+61MBCFbuoWtZl AmqJGtKW50EYCTpr7KSN5CFmpNhCxG3MGsfWJdghTjb+HrUEjHnaQnPHYXJz41eZ VZbyH9Tj5zdhFJc87JxnCzb8to/HUeorb599P4ADXhNkQFVPa1sqja+06hEJgLfm c/M8YlVb/xHp+1XB+MPBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1781276046; x=1781362446; bh=B BCSUrN+AC/94kDfRItSJQBCs0t/XALdBXiCxm8EgsI=; b=i5iPGa/Xx4eFx/UR+ tlfKxlkVNJryUBgM7u+yXZvfX2g6QGU5J8BCWLko0B4KAGB1/U0zmWbvhbAfEi3G yLaw9y7PALbzr20KvJ28XUxnFnOa9XN+1a7z8Odw4wDZYvGxkXZVwKZrpPwNmaU6 X9/uth8LSg6wlC6vkdcHjOMHX48gGX2iRC+vK9ozuZZPxnQPS7qfy+llRMzF9MkI ovgaV5iLPG/qPFT7RGvxag2v0ejP3MOXgRqiROq3VesOjH79VOVMNuULe4oWKnDW DzBSlL30ayn4P9+UejYkwjsQNMOqNyxOSsRDktAwcFU5nmLJM1SwU50ZcqcSMRtm blxlA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEmXUuQhJjQR0lU5ocwref+aeehbN9l0eHm2B/qSoQrZYi09e4Oh/MPCUvPI2PHxe /t9QmXFlH5FAS9eCFBm6tloZRG7EOg1NjeyKiWguILmfYdaL0q1hdkfrzVLUoTn4hd7Can mss+Vgr79RflyJ7yLJUGNcejgtX+3we1rC7ARXkoqR+S8MwI93nXfpc63OXe3ttjoEu4CW VbFdlF1JAnfN5ZPaOjPJGw2Z/yJBEVrW8txukUhVYLK3iynb9tCSZzn58+pemLCHx7vs9M RkLT3Opb+EKhO9psM4pDqGvOQUjf6q9J4ASJ52P8/QaKJcp0RNW98hpbc11sGUaTkTRzZr bzuShgimtpEmyxBhgiVWgM9/i8swZ2eeU16jinOgpdzqHB52iu9mTr9V37+ScMjLjEnvdz BGZ4FXx7kirNtc7LNkKvRzAW94j4l8xutZs6VR16tLKOprVIs+CLfvfpNz2bFZiVBxxHTH 80gMtgHwFPgZuOax03k8QbX3UVRNuiqwA6tdJXtS/qWLclFq0nkyqKHsVZkWpKW6v3v4ne RifyqOzZenSyKTd6YDW0qeiwSppAHI+8g9kTc+xI8iEWK+aJkJ8Hh6QlFmi+Lus+rDg5mn NFlcuNXBs+o8BiYqbpKGvJtVsFNKDF/J7vzsF+jjGMz1WZ+tYi/e6A8O1Ecw X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 12 Jun 2026 10:54:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1781276044; bh=ULnKYriBQ6hGJzne6jYUCtH9gGoFM+Jf5KtDCO9dnb4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=3WXdz2K1edPzwqFP+/SQ4bquuI33vHYYvlnMLZ7FEjoknjlnaC/Fk0veTRT93fIk6 EVNE4TteLmPKosxndLTic4TLoWyKkN5PzRYi1D2uW2y8aRyA3IRKSk7LZNT1b8Ask9 TfShWQfucrh/4iZ6C90qg5MoE1WHKhPD9KOnDQVKIUFFv9fUgS71JQHtALQL4AioAA 7T2x1IpW7PagTWxaIKRJeHj6GrveUlueoz4XWSeOPzFQUR0e4avmrIxpH0BYmpMGgi F4UznLZ++R4g+tkYYt1KsGU2qoLlqlVz0phtGXcj/Ba8/dUktpGOKcxGDOYxlf8YPZ A1QaJvAVBSP4w== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 4579BB0067E; Fri, 12 Jun 2026 16:54:04 +0200 (CEST) Date: Fri, 12 Jun 2026 16:54:04 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Nathan Bossart Cc: Hans Buschmann , "pgsql-hackers@postgresql.org" Subject: Re: PG19beta1: GCC 16.1.1 warning: =?utf-8?B?4oCYYWN0dWFsX2FyZ190?= =?utf-8?B?eXBlc+KAmQ==?= may be used uninitialized in clauses.c Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Jun-04, Nathan Bossart wrote: > On Thu, Jun 04, 2026 at 02:42:18PM +0000, Hans Buschmann wrote: > > 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 code is ~18 years old, so I'm dubious there's a real problem here. > Does something like this suppress the warning? > > Oid actual_arg_types[FUNC_MAX_ARGS] = {InvalidOid}; I agree that it doesn't look like there's a real problem, and that something like what you suggest should silence this warning. I mildly prefer to do " = {0}" though, the rules for C incomplete initializers being so weird. But I wouldn't oppose this patch as posted. BTW we seem to do pretty much the same thing in ParseFuncOrColumn(), right? -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "People get annoyed when you try to debug them." (Larry Wall)