Merge branch 'jk/dev-build-format-security'
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Sep 2018 17:30:49 +0000 (10:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Sep 2018 17:30:49 +0000 (10:30 -0700)
Build tweak to help developers.

* jk/dev-build-format-security:
config.mak.dev: add -Wformat-security

config.mak.dev
index 9a998149d99a8eeebf311d5e84d43f146ed0f90d..92d268137f61e825c1529e5eedca9e39c539dce2 100644 (file)
@@ -7,6 +7,7 @@ CFLAGS += -pedantic
 CFLAGS += -DUSE_PARENS_AROUND_GETTEXT_N=0
 endif
 CFLAGS += -Wdeclaration-after-statement
+CFLAGS += -Wformat-security
 CFLAGS += -Wno-format-zero-length
 CFLAGS += -Wold-style-definition
 CFLAGS += -Woverflow