Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-01-19 03:02:23 +0300
committerJunio C Hamano <gitster@pobox.com>2022-01-19 03:02:23 +0300
commit0330edb239c2482739329f5182de89a9580868ad (patch)
treec88c3b6237a7ba294d2c39205e2b0ad8ce616250
parentb56bd95bbc8f716cb8cbb5fdc18b9b0f00323c6a (diff)
parent2b95d94b056ab3fd01f493f116381a3cd43c3433 (diff)
Merge branch 'jc/freebsd-without-c99-only-build'
FreeBSD 13.0 headers have unconditional dependency on C11 language features, and adding -std=gnu99 to DEVELOPER_CFLAGS would just break the developer build. * jc/freebsd-without-c99-only-build: Makefile: FreeBSD cannot do C99-or-below build
-rw-r--r--config.mak.dev5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mak.dev b/config.mak.dev
index d4afac6b51..3deb076d5e 100644
--- a/config.mak.dev
+++ b/config.mak.dev
@@ -20,9 +20,14 @@ endif
endif
endif
+ifneq ($(uname_S),FreeBSD)
ifneq ($(or $(filter gcc6,$(COMPILER_FEATURES)),$(filter clang7,$(COMPILER_FEATURES))),)
DEVELOPER_CFLAGS += -std=gnu99
endif
+else
+# FreeBSD cannot limit to C99 because its system headers unconditionally
+# rely on C11 features.
+endif
DEVELOPER_CFLAGS += -Wdeclaration-after-statement
DEVELOPER_CFLAGS += -Wformat-security