diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-12-22 22:48:11 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-12-22 22:48:11 -0800 |
| commit | 553641555140a5aa4bab542246a401ea174364b7 (patch) | |
| tree | 8f42914e1432ce42786443292dc8ceebbecef139 | |
| parent | Merge branch 'ab/common-main-cleanup' (diff) | |
| parent | config.mak.dev: specify -std=gnu99 for gcc/clang (diff) | |
| download | git-553641555140a5aa4bab542246a401ea174364b7.tar.gz git-553641555140a5aa4bab542246a401ea174364b7.zip | |
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.dev | 5 |
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 |
