diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-02-26 13:37:27 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-26 13:37:27 -0800 |
commit | 0f0dd370c84b4068bd80cbab30cb2ea67abedbe0 (patch) | |
tree | 9200b08684af983b6bb34017e1d26471b31b3178 /Makefile | |
parent | Merge branch 'dt/initial-ref-xn-commit-doc' (diff) | |
parent | add DEVELOPER makefile knob to check for acknowledged warnings (diff) | |
download | tgif-0f0dd370c84b4068bd80cbab30cb2ea67abedbe0.tar.xz |
Merge branch 'ls/makefile-cflags-developer-tweak'
There is a new DEVELOPER knob that enables many compiler warning
options in the Makefile.
* ls/makefile-cflags-developer-tweak:
add DEVELOPER makefile knob to check for acknowledged warnings
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -380,6 +380,18 @@ ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) STRIP ?= strip +ifdef DEVELOPER +CFLAGS += -Werror \ + -Wdeclaration-after-statement \ + -Wno-format-zero-length \ + -Wold-style-definition \ + -Woverflow \ + -Wpointer-arith \ + -Wstrict-prototypes \ + -Wunused \ + -Wvla +endif + # Create as necessary, replace existing, make ranlib unneeded. ARFLAGS = rcs |