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 1vuvDO-00CzMk-1J for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 16:24:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuvDN-0025fy-0n for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 16:24:49 +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.96) (envelope-from ) id 1vuvDM-0025fp-36 for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 16:24:48 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vuvDJ-00000000z2E-0gqA for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 16:24:48 +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 61OGOjgA3988415 for ; Tue, 24 Feb 2026 11:24:45 -0500 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: Warning-suppression fixes we ought to back-patch MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3988413.1771950285.1@sss.pgh.pa.us> Date: Tue, 24 Feb 2026 11:24:45 -0500 Message-ID: <3988414.1771950285@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I looked through the buildfarm's compiler warnings on back branches, which is something I rarely do, and noted a bunch of warnings that we are not seeing on master. That's because of recent commits that aimed to silence those warning types. Most of the noise could be suppressed by back-patching these two changes: 0909380e4 Allow PG_PRINTF_ATTRIBUTE to be different in C and C++ code. This only matters for builds that are combining gcc with clang++ or vice versa, but we have a dozen or so BF animals that are like that, and each one is spewing a hundred "unrecognized format function type" warnings. 8f1791c61 Fix some cases of indirectly casting away const. While we've done a lot of const-cleanliness work recently, this patch should be enough to silence most of the cast-away-const warnings I'm seeing in the BF back branches. Only "midge" is showing them at the moment, but more people will be seeing them as gcc 16 gets more widespread. (I'd probably skip the ecpg bits though, as they are a bit more convoluted than the rest, so the risk/benefit ratio seems poor.) Both of these patches were applied only to master, but with the expectation that we'd back-patch once they'd baked awhile. It's been two-plus months which seems like enough. So barring objections, I will back-patch them once the current release freeze is over. regards, tom lane