meson: Specify -Wformat as a common warning flag for extensions
Sutou Kouhei <kou@clear-code.com>
From: Sutou Kouhei <kou@clear-code.com>
To: pgsql-hackers@postgresql.org
Date: 2024-01-22T05:11:39Z
Lists: pgsql-hackers
Attachments
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
Commits
-
meson: Restore implicit warning/debug/optimize flags for extensions
- 3482bab5e30a 17.0 landed