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.94.2) (envelope-from ) id 1uZHnk-001GaK-31 for pgsql-committers@arkaria.postgresql.org; Tue, 08 Jul 2025 23:32:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uZHnh-00CPQ9-9g for pgsql-committers@arkaria.postgresql.org; Tue, 08 Jul 2025 23:32:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZHnh-00CPPv-1w for pgsql-committers@lists.postgresql.org; Tue, 08 Jul 2025 23:32:37 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uZHnf-006IWW-1w for pgsql-committers@lists.postgresql.org; Tue, 08 Jul 2025 23:32:36 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 18E6F1D0018C; Tue, 8 Jul 2025 19:32:35 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Tue, 08 Jul 2025 19:32:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1752017554; x=1752103954; bh=b4ztDqi2V9 GPkHkh1TlWA9BDHwSxKz9MseeRHR7suh8=; b=H4oVnMIywYG7ifTbzI2Y8tY/cz Xgq9n/RQcPl1g4Txjnc0y3Czya7A9HqsmfsVw+gBOOa5bEQr9MFPmZT5Wf78/6uB GanDLk8GHENyHYr/Fh7b7Qhbmgry7Ld8T2q1o5eCO1Uu3I++KXdeCXkiIp7fncFI hScf6Zo/+DiOmSqdo3caVaISYHb73/939fzjxWVPMq8XUIihQ1r55MdUwruPQrHT A1mQGlW2WhATdd2TNdBMGwrpmcfXMf3AbpCJBryTteEQNNpnpVA1Ka3agdgt1Ruu BPtYhh/8pruHqwCPlg6MHj3NuLyHGMZDcUE9inRdIT34KBmaufI8csm5e0kg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1752017554; x=1752103954; bh=b4ztDqi2V9GPkHkh1TlWA9BDHwSxKz9Msee RHR7suh8=; b=OhbyiTxsrqjmoOpK81WyhjXDYvyWVVpYaVwGuuy8gf7N2EnOEfP BQMdPxlaKKWSwQ/nMX4VOMRr9jemvPtxGDRrh46+8B7zblXAWeJIKThKTyTBND8q gwcLkffvxRbm/qoruosamdOrtsxIqlngq1HHK1vt4/zw2DUMPuFNrCtVjQCWHOIE hm8FIHekQktxfK4rYF64eZ946TzqlbCiPW0Tg/CUR7Fq0u7B/vC3/JWmOCUkMqV4 q2JJHwaTWmAL1pq59w9ikwbFDEye0IEoipEu2l5fXT413G6LOiOB+SlOvoqetlvE npr3vzsQhvF0PyxVaG3YP0EAtiUO1VfVCXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdefiedtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuf fkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgv rhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpe etleeifedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvg hlsehprghquhhivghrrdighiiipdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhp ohhuthdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtoh epphhgshhqlhdqtghomhhmihhtthgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdr ohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Jul 2025 19:32:33 -0400 (EDT) Date: Wed, 9 Jul 2025 08:32:20 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix up misuse of "volatile" in contrib/xml2. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d8oeWdaS3p7Zgvw9" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --d8oeWdaS3p7Zgvw9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 08, 2025 at 09:00:39PM +0000, Tom Lane wrote: > Fix up misuse of "volatile" in contrib/xml2. >=20 > Also fix a number of places where variables that are assigned to > within a PG_TRY and then used after it were not initialized or > not marked as volatile. (A few buildfarm members were issuing > "may be used uninitialized" warnings about some of these variables, > which is what drew my attention to this area.) In most cases > these variables were being set as the last step within the PG_TRY > block, which might mean that we could get away without the "volatile" > marking. But doing that seems unsafe and is definitely not per our > coding conventions. >=20 > These problems seem to have come in with 732061150, so no need > for back-patch. Oops, thanks. I was not aware of these reports, and the buildfarm was not showing any red, the CI looked fine and my machine did not complain with a rather new gcc. What were the buildfarm members impacted? Did these use a switch and/or a specific compiler that helped in detecting these problems? -- Michael --d8oeWdaS3p7Zgvw9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmhtqoQACgkQnvQgOdby QH0eqw//Rwwx7hkPMK6jrbV2ZkqpLIRyebX+JeEIjfolagZ/1w98krGJ+Ayukgo4 yusg93Uh+4xA9PLADe3Y0j9nxiBJ5zjB07Y1/CxG1wnbeq2J2uYOTNuRRHR5jtkV rEcCqyJ0U45gmVacJL5IulqTGuF1rf/63KZpiMiCX8jfzVREd1LVCEZ645V0xrO3 A3FQIMfwZABFxzjSvRUXKiNHDzxW9Vnnl0KDNFagdbK4qllrT19+8xV5VlQKNVmg 9U+jhqnnHpQNIHPi2J4DGsaAkfBmpU3AnXCmfZ0MXGZ+kyVv+5SZ1VPYWfLMwUSB amo76L2np/wcW1DP1wnQesB3PYbEIhMu08NBwaVCBx0Y6frVb3eTL3+tEXdC0vO4 UblHeqs39/49CpqNLp9PxueF3xdSYzQBlDij3m0I1GpllAidO3wkEAlxloOEgasC p1C8QKbjhTBC6PY7wvEQjOLkwYw1b64KOTQ9cBm55OZbfPQZ6wOPpure5FIIAWku +L6aZ9sWiBjLqilXN5Yx8NR1sFvUPEcDQKoZSEkf9EbT9nBOMQcdlH4lxTB5XrLs VqkifxHCQoF0tX9n9xVDhkfdFQORpbZdtEUTHJR7mA5Fb7oyNElC2PfGerFBxsJX kHZ7uPYyb4DlRDHi1VWdx5bPkQ7RUbKQJ1k0ydR3zjasfTwZ2Pw= =xjnz -----END PGP SIGNATURE----- --d8oeWdaS3p7Zgvw9--