makefiles/cflags.inc.mk: Remove WERROR duplicate handling
WERROR already sets -Werror so this is not necessary.
This commit is contained in:
parent
f89b727567
commit
be2169d587
@ -40,9 +40,6 @@ ifeq ($(shell $(CC) -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-de
|
|||||||
# duplicated parameters don't hurt
|
# duplicated parameters don't hurt
|
||||||
CFLAGS += -Wstrict-prototypes -Wold-style-definition
|
CFLAGS += -Wstrict-prototypes -Wold-style-definition
|
||||||
CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
|
CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
|
||||||
ifeq ($(WERROR),1)
|
|
||||||
CFLAGS += -Werror=strict-prototypes -Werror=old-style-definition
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Unwanted flags for c++
|
# Unwanted flags for c++
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user