summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-12-22 22:48:11 -0800
committerJunio C Hamano <gitster@pobox.com>2021-12-22 22:48:11 -0800
commit553641555140a5aa4bab542246a401ea174364b7 (patch)
tree8f42914e1432ce42786443292dc8ceebbecef139
parent67b7017593d1ee878dd4aae9c51f81db1742752e (diff)
parent5f46385309b7a67d20a8471c27ccc1d5fdd09d53 (diff)
Merge branch 'jk/limit-developers-to-gnu99'
Enable -std=gnu99 option in DEVELOPER builds. * jk/limit-developers-to-gnu99: config.mak.dev: specify -std=gnu99 for gcc/clang
-rw-r--r--config.mak.dev5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mak.dev b/config.mak.dev
index 7673fed114..d4afac6b51 100644
--- a/config.mak.dev
+++ b/config.mak.dev
@@ -19,6 +19,11 @@ endif
endif
endif
endif
+
+ifneq ($(or $(filter gcc6,$(COMPILER_FEATURES)),$(filter clang7,$(COMPILER_FEATURES))),)
+DEVELOPER_CFLAGS += -std=gnu99
+endif
+
DEVELOPER_CFLAGS += -Wdeclaration-after-statement
DEVELOPER_CFLAGS += -Wformat-security
DEVELOPER_CFLAGS += -Wold-style-definition