Dev support to catch a tentative definition of a variable in our C
code as an error.

* jk/no-common:
  config.mak.dev: build with -fno-common
This commit is contained in:
Junio C Hamano 2020-11-02 13:17:41 -08:00
Родитель df7f850a85 5539183622
Коммит 5277bd3e26
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -15,6 +15,7 @@ DEVELOPER_CFLAGS += -Wpointer-arith
DEVELOPER_CFLAGS += -Wstrict-prototypes DEVELOPER_CFLAGS += -Wstrict-prototypes
DEVELOPER_CFLAGS += -Wunused DEVELOPER_CFLAGS += -Wunused
DEVELOPER_CFLAGS += -Wvla DEVELOPER_CFLAGS += -Wvla
DEVELOPER_CFLAGS += -fno-common
ifndef COMPILER_FEATURES ifndef COMPILER_FEATURES
COMPILER_FEATURES := $(shell ./detect-compiler $(CC)) COMPILER_FEATURES := $(shell ./detect-compiler $(CC))