Skip to content

Commit 19c5c8c

Browse files
committed
Add -Wformat compiler flag
To get rid of the following warning when compiling against 16: cc1: warning: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Wformat-security]
1 parent 74f4a6f commit 19c5c8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ DATA = pg_show_plans--1.0--1.1.sql \
99
REGRESS = pg_show_plans formats
1010
DOCS = pg_show_plans.md
1111

12+
# Fix GCC compilation warning against 16:
13+
# cc1: warning: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Wformat-security]
14+
PG_CFLAGS = -Wformat
15+
1216
USE_PGXS = 1
1317
ifdef USE_PGXS
1418
PG_CONFIG = pg_config
@@ -20,4 +24,3 @@ top_builddir = ../..
2024
include $(top_builddir)/src/Makefile.global
2125
include $(top_srcdir)/contrib/contrib-global.mk
2226
endif
23-

0 commit comments

Comments
 (0)