Skip to content

Commit

Permalink
Add -Wformat compiler flag
Browse files Browse the repository at this point in the history
To get rid of the following warning when compiling against 16:
cc1: warning: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Wformat-security]
  • Loading branch information
kovmir committed Jan 26, 2024
1 parent 74f4a6f commit 19c5c8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ DATA = pg_show_plans--1.0--1.1.sql \
REGRESS = pg_show_plans formats
DOCS = pg_show_plans.md

# Fix GCC compilation warning against 16:
# cc1: warning: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Wformat-security]
PG_CFLAGS = -Wformat

USE_PGXS = 1
ifdef USE_PGXS
PG_CONFIG = pg_config
Expand All @@ -20,4 +24,3 @@ top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

0 comments on commit 19c5c8c

Please sign in to comment.