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 1vkODE-00EJKL-1E for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jan 2026 15:09:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkODC-008WGc-2J for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Jan 2026 15:09:07 +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 1vkODC-008WFw-02 for pgsql-hackers@lists.postgresql.org; Mon, 26 Jan 2026 15:09:06 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vkOD9-00000000Yi8-1AQP for pgsql-hackers@postgresql.org; Mon, 26 Jan 2026 15:09:05 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 0222DEC0254; Mon, 26 Jan 2026 10:09:02 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Mon, 26 Jan 2026 10:09:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding: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=fm1; t=1769440141; x=1769526541; bh=e3+wAsSD325jOIc4jZjUDhY6iyJmvYfE LoOKHIKTJSQ=; b=g7xYd+yWdbMRAZHCytIEhY2aesmlVv7qLI48JYhIcEf4Q9qB heDf8RabP07eTwyIFZf9g4yS25Ab2OH65cXbVnBEu2rs28Jf4sug5rdHNEytEiYr b/SCvai9G3iPMKWhh7HRrkw/ToLu3WL5oqCQ/+nuoFCm0q3R9hJhbWG5uuXgfypy 9YjgonzjRUMiEHcnW3EG+TLEu6pMrgc8p+AhaKaXRoO2YUBKG0eyBHUc5N5b4UN2 fw47gHoSmkQsyporeH8+lOxbo614+j86Mm5brFr62yXnIH03JwhxTBXbJbg/dl1D Fqxz3ovITyyPwoPa6QL6G9zVuAERsY6T4RqQqA== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1769440141; x= 1769526541; bh=e3+wAsSD325jOIc4jZjUDhY6iyJmvYfELoOKHIKTJSQ=; b=S HbS8qvMM5m5ym25X3TLlIXCJAWLjwa8XFMW2xgSWfaJCruy88RLqf0BeDUbEzI/o E+8peeaq2crqQp3KObGHDgQODW6I51iKm2t/uOj3ATIOcJ/BP0CUMywR5i2K4LCz vRNJ5wHivkN93Du+nud+oP1l4jcJTU+ojt708yle92KjSkrwVPD/mFUySbUD3Fe6 +gwFfM0VV0y/A2H73ID517ByDSKItoVqliGZgGtn9zGg+HjChFwhBM9T7IDHEuKl oJjnn9DvuXN3aVpfK4wnK10EnWRKLP4fz4lK+vfCMHkyp8dyjy4RW1G2scIzpGj2 vbtcwkQjFDAo+u9juarSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduheejleelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejre dttddvjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhes vghishgvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpedtuefgveejteelle evfedvtedvtdegueegvdelleelteetgeduveefteejjeejteenucffohhmrghinhepghhi thhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhnsggprhgtphhtthho pedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsvghrthhrrghnuggurhhouh hvohhtrdhpghesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgv rhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Jan 2026 10:09:01 -0500 (EST) Message-ID: Date: Mon, 26 Jan 2026 16:09:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fix accidentally cast away qualifiers To: Bertrand Drouvot Cc: pgsql-hackers References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 21.01.26 15:56, Bertrand Drouvot wrote: > Hi, > > On Wed, Jan 21, 2026 at 02:24:58PM +0000, Bertrand Drouvot wrote: >> Hi, >> >> On Wed, Jan 21, 2026 at 12:31:27PM +0100, Peter Eisentraut wrote: >>> Strange, I don't see that. What compiler is this, and do you use any >>> special options? >> >> It's gcc 14.1.0 with "CFLAGS=-O0 -ggdb3 -fno-omit-frame-pointer -gdwarf-2 -g3 >> -Wdiscarded-qualifiers -Wunused-value -Werror=maybe-uninitialized >> -Werror=format -Wreturn-type" >> >> But I just tested with a simple test case, some compilers and some options and I've >> always seen the warning (see [1]) > > FWIW, and so does the CI: https://github.com/bdrouvot/postgres/runs/61028037498 I must have done something wrong on my side. I have committed it with your corrections.