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 1vzdfI-001BSJ-1Y for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 16:41:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzdfG-00HXtY-1K for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 16:41:06 +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 1vzdfG-00HXtQ-0R for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 16:41:06 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzdfE-00000001pL3-0W73 for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 16:41:06 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-48539d21b76so10964495e9.1 for ; Mon, 09 Mar 2026 09:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773074463; x=1773679263; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3XYMclG9MW46JeTdKYXoA7Fzqgz9G62Q2zaLKcYiEg0=; b=b2JZ3Wh9QICdUiQ3F1mn+Nek+UqIGiNIZZeFn0kQSydpVcHz/tb3W8VO84CO/+XZ71 AhJLxrk/4NLv7yZ/pwLixT1o9bf1HAyNjYJUzF2sJ86IKP9/gQnGBL6ucSt0ZbuuJbmE r8+wdgRo8BxqA5vIcbTXO6Bud9x5yhA54T50zHDoPlnfbDJZCHNcA6RfpS9PYgOqAIXv XSvOiNP2LyGrrIKB9CKDDuPjzCNXHRZL/DWiS9bpsNk+WLPKjQMrgaMhPTHv2I1U4kLd JkuaZ0eiZMHxMqHmzoAlha1/TQ2jkpGetZT3HntYcmhI58FrjwKMhTyitjDrs1nG6SSK ZG/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773074463; x=1773679263; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3XYMclG9MW46JeTdKYXoA7Fzqgz9G62Q2zaLKcYiEg0=; b=cpj0RFImA/+hk9JkIGaH/HtVhCDgW69G//xvA7QqG4bXqN5UFK0wkWUd5zGnW08v8P af8UXt1Xu9BKS1FKFy2trT4a9Eqeoa+m1iZWlgm7v7L6GlvzrD2XTV3iVGpGEcruoZyF 9Zw7dD2GHAdS+PHDMsIbkbEbgknqrPMy5esXusO5LRJyjg30lzf9HCGTgFWVfy70SDPJ TKlGuDDpKtC2t5DBj3nSHj1yJVBYmjWh0zIS3PgUWJ/EERBkU0vojoeoXV3EwUSFptFd 2C28xlZ9sRZ9qpA+hXidK4mCCVDaiTuI3tjvj0SYdp0tiigR/ThjHalxIVnrD7NWQroo 8sfg== X-Forwarded-Encrypted: i=1; AJvYcCWgrgAa1EEKvSX4NTOGS3qPgoF+VXO1iFwMmoIITRLVXkPUDyKacnrpb7V/snM0WiODxbbtoxRAO1aFWlOS@lists.postgresql.org X-Gm-Message-State: AOJu0YyNFJTwPQtN+FVG9W2rXfmVHudP0e42Wrexa9brUGGiLr3Tlvfc x8KWn+OSg6IebGZsJBgZIxfL0WOj3sos7lINt6JtJS6ENGDIST3VmgHWNbLIsQ== X-Gm-Gg: ATEYQzwBhKqNFKNmCdpKNYv30n3Jk0S8+LqxVUxQCedzEhj5VCWJVW5J6jDy3OXmi9x mKa+pq5NZVFkJAJ6fg+syCv4mU17/D4zHLdyRkdLD+7oewxKkI1KhgCxXRzTJf9wgfWTdUCceG6 TG30HJZgdWzn4FZfFQUXxcleCsrOjJG2wYAGyUs9xsAMWP3hS4B6RFb72Dk3l8PZj6Ghhiw4+AU k2MLLbgmvn4IFZulpEMbFz+SF0CjcddLevfUbqUgcJDYXwTkYzP9MiVXW/aynIB/zQGPymbXxaP rrYuqYk7cCecM9MmYXwLLg7Uxqeauq26pdLac2+XpD851GLTw72YKGXcgKnYqX+mhsLGI8NSEiN IKDF71J5GCoMS7+B3ZcjStW6d0G/Te/TptiW0YZwCEYwPb5maXf/nuwmSG0NrzqPrNycIz5Y7DL NIpjgyfHxj/v4oMvgw5sGMPGuwmy7dsEqeAagAwfwolIUeZV+EzvjuG2/rY//rc8eHcQEzShwcg /Kk/Hrjb5CaERcAswqx7eJZuYKZvVZMlvcdB4mBjHBboTdmf2iyjOq96Q== X-Received: by 2002:a05:600c:4752:b0:483:7783:537b with SMTP id 5b1f17b1804b1-4852697a593mr206014525e9.24.1773074462808; Mon, 09 Mar 2026 09:41:02 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48541aacd81sm2936925e9.14.2026.03.09.09.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 09:41:02 -0700 (PDT) Date: Mon, 9 Mar 2026 16:41:01 +0000 From: Bertrand Drouvot To: Peter Eisentraut Cc: Chao Li , pgsql-hackers@lists.postgresql.org, Jeff Davis Subject: Re: Use pg_icu_unicode_version(void) instead of pg_icu_unicode_version() Message-ID: References: <2E8E63C9-A2F6-4723-A937-B9F6CB34C88A@gmail.com> <262909b8-3f4b-42ce-acd7-bdd4a6897990@eisentraut.org> <13d51b20-a69c-4ac1-8546-ec4fc278064f@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13d51b20-a69c-4ac1-8546-ec4fc278064f@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Mar 09, 2026 at 09:44:45AM +0100, Peter Eisentraut wrote: > On 09.03.26 08:57, Bertrand Drouvot wrote: > > Hi, > > > > On Mon, Mar 02, 2026 at 07:36:20PM +0100, Peter Eisentraut wrote: > > > On 27.02.26 07:45, Bertrand Drouvot wrote: > > > > Hi, > > > > > > > > On Fri, Feb 27, 2026 at 02:04:30PM +0800, Chao Li wrote: > > > > > > > > > > > > > > > What I'm interested in is the broader policy: when reviewing patches, > > > > > if we encounter a foo() declaration, should we consistently request a change to foo(void)? > > > > > If yes, the standard should be documented somewhere. > > > > > > > > I think that they should be consistently fixed for the reasons mentioned in > > > > [1], and that the best way to achieve this goal would be to enable -Wstrict-prototypes > > > > by default ([2]). > > > > > > Yes, why not add -Wstrict-prototypes and perhaps -Wold-style-definition to > > > the standard warnings. Then we don't have to keep chasing these manually. > > > > Yeah, I'll look at adding those. > > I played with this a little bit. A problem I found is that the generated > configure code itself generates its test programs with 'main()', and so with > these warnings, many of these tests will fail. So you'd need to create some > different arrangement where you test for the warnings but only add the flags > at the end of configure. > > But also, my research indicates that -Wstrict-prototypes and > -Wold-style-definition are available in all supported gcc and clang > versions, so maybe you could avoid this problem by not testing for them and > just unconditionally adding them at the end. Yeah, I did observe the same. I moved the new flags late enough in configure.ac to avoid any error (for example, PGAC_PRINTF_ARCHETYPE which uses -Werror and would fail to detect gnu_printf if -Wstrict-prototypes is active) leading to the mingw_cross_warning CI task failing. I just shared the patch in a dedicated thread [1]. [1]: https://postgr.es/m/aa73q1aT0A3/vke/@ip-10-97-1-34.eu-west-3.compute.internal Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com