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 1rHcVQ-003MHO-P1 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Dec 2023 04:23:56 +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 1rHcVO-00Gnbh-Fv for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Dec 2023 04:23:54 +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 1rHcVO-00GnbY-6K for pgsql-hackers@lists.postgresql.org; Mon, 25 Dec 2023 04:23:54 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHcVL-00DlNz-JC for pgsql-hackers@postgresql.org; Mon, 25 Dec 2023 04:23:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3BP4Nnp01749749; Sun, 24 Dec 2023 23:23:49 -0500 From: Tom Lane To: Richard Guo cc: PostgreSQL-development Subject: Re: Erroneous -Werror=missing-braces on old GCC In-reply-to: <1738157.1703476653@sss.pgh.pa.us> References: <1738157.1703476653@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 24 Dec 2023 22:57:33 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1749747.1703478229.1@sss.pgh.pa.us> Date: Sun, 24 Dec 2023 23:23:49 -0500 Message-ID: <1749748.1703478229@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Richard Guo writes: >> I came across the 'missing braces' warning again when building master >> (0a93f803f4) on old GCC (4.8.5). > On the one hand, it's probably pointless to worry about buggy > warnings from ancient compilers ... Actually, after checking the buildfarm, I see that arowana ayu batfish boa buri demoiselle dhole dragonet idiacanthus lapwing mantid petalura rhinoceros shelduck siskin tanager topminnow xenodermus are all bitching about this (with a couple different spellings of the warning). So this is absolutely something to fix, and I'm rather surprised that nobody noticed it during the development of 174c48050. regards, tom lane