1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #7157 from astralien3000/werror

WERROR management
This commit is contained in:
Alexandre Abadie 2017-06-23 14:23:20 +02:00 committed by GitHub
commit d765e740e0

View File

@ -30,8 +30,11 @@ endif
# Worse yet they hide errors by accepting wildcard argument types. # Worse yet they hide errors by accepting wildcard argument types.
ifeq ($(shell $(CC) -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-definition -Werror=old-style-definition -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) ifeq ($(shell $(CC) -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-definition -Werror=old-style-definition -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
# duplicated parameters don't hurt # duplicated parameters don't hurt
CFLAGS += -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-definition -Werror=old-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++