]> git.ipfire.org Git - thirdparty/git.git/blame - config.mak.dev
config.mak.uname: remove unused the NO_R_TO_GCC_LINKER flag
[thirdparty/git.git] / config.mak.dev
CommitLineData
99f763ba 1ifeq ($(filter no-error,$(DEVOPTS)),)
6d5d4b4e 2DEVELOPER_CFLAGS += -Werror
99f763ba 3endif
729b3925 4ifneq ($(filter pedantic,$(DEVOPTS)),)
6d5d4b4e 5DEVELOPER_CFLAGS += -pedantic
729b3925 6# don't warn for each N_ use
6d5d4b4e
ÆAB
7DEVELOPER_CFLAGS += -DUSE_PARENS_AROUND_GETTEXT_N=0
8endif
9DEVELOPER_CFLAGS += -Wall
10DEVELOPER_CFLAGS += -Wdeclaration-after-statement
11DEVELOPER_CFLAGS += -Wformat-security
6d5d4b4e
ÆAB
12DEVELOPER_CFLAGS += -Wold-style-definition
13DEVELOPER_CFLAGS += -Woverflow
14DEVELOPER_CFLAGS += -Wpointer-arith
15DEVELOPER_CFLAGS += -Wstrict-prototypes
16DEVELOPER_CFLAGS += -Wunused
17DEVELOPER_CFLAGS += -Wvla
1da1580e
NTND
18
19ifndef COMPILER_FEATURES
20COMPILER_FEATURES := $(shell ./detect-compiler $(CC))
21endif
22
23ifneq ($(filter clang4,$(COMPILER_FEATURES)),)
6d5d4b4e 24DEVELOPER_CFLAGS += -Wtautological-constant-out-of-range-compare
1da1580e
NTND
25endif
26
27ifneq ($(or $(filter gcc6,$(COMPILER_FEATURES)),$(filter clang4,$(COMPILER_FEATURES))),)
6d5d4b4e 28DEVELOPER_CFLAGS += -Wextra
1da1580e
NTND
29# if a function is public, there should be a prototype and the right
30# header file should be included. If not, it should be static.
6d5d4b4e 31DEVELOPER_CFLAGS += -Wmissing-prototypes
26d2e4fb 32ifeq ($(filter extra-all,$(DEVOPTS)),)
1da1580e 33# These are disabled because we have these all over the place.
6d5d4b4e
ÆAB
34DEVELOPER_CFLAGS += -Wno-empty-body
35DEVELOPER_CFLAGS += -Wno-missing-field-initializers
36DEVELOPER_CFLAGS += -Wno-sign-compare
37DEVELOPER_CFLAGS += -Wno-unused-parameter
1da1580e 38endif
26d2e4fb 39endif
1da1580e
NTND
40
41# uninitialized warnings on gcc 4.9.2 in xdiff/xdiffi.c and config.c
42# not worth fixing since newer compilers correctly stop complaining
43ifneq ($(filter gcc4,$(COMPILER_FEATURES)),)
44ifeq ($(filter gcc5,$(COMPILER_FEATURES)),)
6d5d4b4e 45DEVELOPER_CFLAGS += -Wno-uninitialized
1da1580e
NTND
46endif
47endif