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 1rRmbC-009JeF-Im for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 05:11: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 1rRmbB-000smv-CQ for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 05:11:53 +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 1rRmbA-000smn-9V for pgsql-hackers@lists.postgresql.org; Mon, 22 Jan 2024 05:11:53 +0000 Received: from mail.clear-code.com ([153.126.206.245]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rRmb6-00344T-HX for pgsql-hackers@postgresql.org; Mon, 22 Jan 2024 05:11:51 +0000 Received: from localhost (unknown [IPv6:2404:7a80:89c1:1200:6af9:2266:1443:f149]) by mail.clear-code.com (Postfix) with ESMTPSA id 37F8960764F for ; Mon, 22 Jan 2024 14:11:41 +0900 (JST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.clear-code.com 37F8960764F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clear-code.com; s=default; t=1705900301; bh=+2JjFyM6OLSzzG4yr5oZoVIP902x8ih4a2mjaoUL168=; h=Date:To:Subject:From:From; b=Ov5mHMnihk5X0kj+TSgk84eWAadznQ5EMmV+FPhZV4S7UwwExTbQj4qphyJUCma+8 DzF9sUZXekSOAWq4WF+LskekiykqjDryNku7PZ/N67h2NFMMWIwnX5A1BkWMf4Yypy +eF88n0+MDlYTEPF32G2hqrxFyP4BYpBMUck9K+A= Date: Mon, 22 Jan 2024 14:11:39 +0900 (JST) Message-Id: <20240122.141139.931086145628347157.kou@clear-code.com> To: pgsql-hackers@postgresql.org Subject: meson: Specify -Wformat as a common warning flag for extensions From: Sutou Kouhei X-Mailer: Mew version 6.8 on Emacs 29.1 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Mon_Jan_22_14_11_39_2024_675)--" Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 37F8960764F X-Rspamd-Server: mail.clear-code.com X-Spamd-Result: default: False [1.40 / 999.00]; MID_CONTAINS_FROM(1.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:2518, ipnet:2404:7a80::/29, country:JP]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[localhost:helo]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; SURBL_MULTI_FAIL(0.00)[localhost:server fail] X-Rspamd-Action: no action List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ----Next_Part(Mon_Jan_22_14_11_39_2024_675)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I'm an extension developer. If I use PostgreSQL built with Meson, I get the following warning: cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security] Because "pg_config --cflags" includes -Wformat-security but doesn't include -Wformat. Can we specify -Wformat as a common warning flag too? If we do it, "pg_config --cflags" includes both of -Wformat-security and -Wformat. So I don't get the warning. Thanks, -- kou ----Next_Part(Mon_Jan_22_14_11_39_2024_675)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="v1-0001-meson-Specify-Wformat-explicitly-for-extensions.patch"