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 1uZiNt-0071qI-L1 for pgsql-committers@arkaria.postgresql.org; Thu, 10 Jul 2025 03:55:45 +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 1uZiNr-007UBB-Ju for pgsql-committers@arkaria.postgresql.org; Thu, 10 Jul 2025 03:55:44 +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.94.2) (envelope-from ) id 1uZiNr-007UB2-CC for pgsql-committers@lists.postgresql.org; Thu, 10 Jul 2025 03:55:44 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uZiNp-006m9G-2O for pgsql-committers@lists.postgresql.org; Thu, 10 Jul 2025 03:55:43 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id A70EF1D001EF; Wed, 9 Jul 2025 23:55:39 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Wed, 09 Jul 2025 23:55:39 -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=1752119739; x=1752206139; bh=VFZ07J86yt qGm5isAhWctNNjcQjwXmsigwJz+KNlK5I=; b=KUyeFqFWRDvI/0e81IKkbjYAoI ziv+1lwMdMhzgAYPm6wC1/wESU2SucUzvpP70enGN77U+25M2Df0RrRKAq9/K+Tu DhFz3wNqMGP268mu/idBcH0p9uMnHko8nw0z6fGFLpecDEWtBmivltNSXNbl2iBe aCkhSlKT9OStrHXS4V0OU0qyT8grRu5V68RG6ACyEOTkJTWr1vIB1xVf0aerMdSc evZfKOaVwB3eyptAlzF2HYSIJ8oGqFBW+nLv5obA2WJCZXh7hTcH1DF8j+jnVeIi oE63X9OlUrDA5FPOf0F52qudTImNvVApTahIUaDonrWwmfNF7c56DZ6RJVdA== 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= 1752119739; x=1752206139; bh=VFZ07J86ytqGm5isAhWctNNjcQjwXmsigwJ z+KNlK5I=; b=Vqs5PdkvdWRKVqKJ5AyOZaGTUUB12Ks1gKhIcaaQuHaGHlHLWBM a+9MxujrLDWJv6/cbOr0/5st2xj8hB1VsGYmKcFU5zKGlFC0JEwwaZ8Nro6QCd+D Ee2FxZC8U5peqENS0NoUzTmHkcPZlNE4vYDGDQzQBPmPkzNfkwK9Xp7+pPwloh0Q jRJnBgW4xeDDGrTyHGbaloq8+ETOjiRfUfKFUIT/M8YOGGSk0WorpQsk2qdYNHq9 gl1Z53J/uXiyI9uO0odh5thrvFtlvphekqb1YzCeRLaHnAKMfq5W2Ob7oNAn0mrw yrtneJF1Duhik6LiFY7+FGsSkT8yLnyWUDA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdefleegudcutefuodetggdotefrod 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; Wed, 9 Jul 2025 23:55:37 -0400 (EDT) Date: Thu, 10 Jul 2025 12:55:25 +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: <1141878.1752076195@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KHOH8mh7VuNscweI" Content-Disposition: inline In-Reply-To: <1141878.1752076195@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --KHOH8mh7VuNscweI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 09, 2025 at 11:49:55AM -0400, Tom Lane wrote: > Not sure. Yesterday I saw such warnings from arowana, > boa, dhole, rhinoceros, and shelduck, eg >=20 > arowana | 2025-07-08 04:54:18 | xpath.c:274:6: warning: 'workspace= ' may be used uninitialized in this function [-Wmaybe-uninitialized] > arowana | 2025-07-08 04:54:18 | xpath.c:319:6: warning: 'workspace= ' may be used uninitialized in this function [-Wmaybe-uninitialized] > arowana | 2025-07-08 04:54:18 | xpath.c:374:6: warning: 'workspace= ' may be used uninitialized in this function [-Wmaybe-uninitialized] > arowana | 2025-07-08 04:54:18 | ../../src/include/postgres.h:329:2= : warning: 'result' may be used uninitialized in this function [-Wmaybe-uni= nitialized] >=20 > Didn't look to try to figure out what the common factor > among these machines is, but I think all of them are somewhat > dated, which is depressing. You'd hope that newer compilers > are more likely to find such issues, not less likely. They are all using some gcc 4.X flavor, most with -O2 but not all. And -Wmaybe-uninitialized is included in my default switches with a gcc 14, and there is nothing with several levels of optimizations applied, up to -O3. :( -- Michael --KHOH8mh7VuNscweI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmhvOa0ACgkQnvQgOdby QH0EbBAAgWv5Z7XHxPctNMgWUz/dpL0WXjI2rh5hjs5xdCKN71MBKV7YmV5/OxX8 XOm2C1p5Z8pac+r6dCfBlzyClqftyjL126FI5lgxYHRrqvbxsdJDlqJRJ2Jmh6x4 hhCaoF0eqVZczBg1oEZ+xrTNuJgSOOfmg/WWauWgiG8PCNv1c4pxmIv3qEWAnb0z 5TW/+iYZIdaNGN6gy/lZhS85HY+wZWRYiNy1v2mUpF96qe4iaELzaJo/KfB8wSrL 8VQNr88uDA6Jk8aswmEs0xSBacroLcZIed7H9L/9f8qOC961lel2Cuhj1zkwN+Iz B/FtqCutqSesWxfZfe1vJixMw5kfHYNzTG9flRfwE9ZuD9Hm/bN28iIH7eTEO7if v2n1MwWWEwtuC/a82tT56ay9kkwvRZrsJf2j+LlX8g9UBW/aYGHkmjiCjnydK10G Aob+kxcwy4rhoWNNexZGUgmf29mMaOO+upVKve4vUMfe9Y6dV13AuRcU+zfvurI7 eyCBgGnMLgihUmiLwuyfoMahaoVB1DD6cemmUCwKgQahryaNwuCqNMVumV3L4vOX 4kSRs2drKzKn2gUNJ9vqMcnAcRNr1BeoO6/P3nGxjZhnre4JrHXmfhET3641UEnE mXVo7RHlYf9jGiChl/r1+TGwgQqf60WHr+qQxKUVqEc9z05fCTg= =JDLW -----END PGP SIGNATURE----- --KHOH8mh7VuNscweI--