summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:55 (GMT)
commit74ae0652c4736629db9c97f7a3ac7cebedaeae10 (patch)
treee573f2880b95ea9e9787fe9824320d351c471313
parent77fbd96aebf794bc9131bd175be500eac2edcd2d (diff)
parent6163f3f1a4288a6a17d2e3cdee4391b25ef09edd (diff)
downloadgit-74ae0652c4736629db9c97f7a3ac7cebedaeae10.zip
git-74ae0652c4736629db9c97f7a3ac7cebedaeae10.tar.gz
git-74ae0652c4736629db9c97f7a3ac7cebedaeae10.tar.bz2
Merge branch 'jk/dev-build-format-security'
Earlier we added "-Wformat-security" to developer builds, assuming that "-Wall" (which includes "-Wformat" which in turn is required to use "-Wformat-security") is always in effect. This is not true when config.mak.autogen is in use, unfortunately. This has been fixed by unconditionally adding "-Wall" to developer builds. * jk/dev-build-format-security: config.mak.dev: add -Wall, primarily for -Wformat, to help autoconf users
-rw-r--r--config.mak.dev1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.mak.dev b/config.mak.dev
index bbeeff4..7354fe1 100644
--- a/config.mak.dev
+++ b/config.mak.dev
@@ -6,6 +6,7 @@ CFLAGS += -pedantic
# don't warn for each N_ use
CFLAGS += -DUSE_PARENS_AROUND_GETTEXT_N=0
endif
+CFLAGS += -Wall
CFLAGS += -Wdeclaration-after-statement
CFLAGS += -Wformat-security
CFLAGS += -Wno-format-zero-length