diff options
Diffstat (limited to 'config.mak.dev')
| -rw-r--r-- | config.mak.dev | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config.mak.dev b/config.mak.dev index 7673fed114..335efd4620 100644 --- a/config.mak.dev +++ b/config.mak.dev @@ -19,6 +19,16 @@ endif 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 DEVELOPER_CFLAGS += -Wold-style-definition @@ -55,4 +65,9 @@ DEVELOPER_CFLAGS += -Wno-uninitialized endif endif +# https://bugzilla.redhat.com/show_bug.cgi?id=2075786 +ifneq ($(filter gcc12,$(COMPILER_FEATURES)),) +DEVELOPER_CFLAGS += -Wno-error=stringop-overread +endif + GIT_TEST_PERL_FATAL_WARNINGS = YesPlease |
