| From: | Sutou Kouhei <kou(at)clear-code(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | meson: Specify -Wformat as a common warning flag for extensions |
| Date: | 2024-01-22 05:11:39 |
| Message-ID: | 20240122.141139.931086145628347157.kou@clear-code.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-meson-Specify-Wformat-explicitly-for-extensions.patch | text/x-patch | 1.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Smith | 2024-01-22 05:14:46 | Re: Move walreceiver state assignment (to WALRCV_STREAMING) in WalReceiverMain() |
| Previous Message | Peter Smith | 2024-01-22 05:09:28 | Re: Make mesage at end-of-recovery less scary. |