Skip to content
Snippets Groups Projects
Unverified Commit a71ef652 authored by Joakim Nohlgård's avatar Joakim Nohlgård Committed by Gaëtan Harter
Browse files

makefiles/cflags.inc.mk: move excluded patterns out of conditional

The excluded patterns can always be defined as they only set `CFLAGS` that
should not be passed to `CXX`.

This prepares for replacing the cflags support detection by a function.
parent be2169d5
Branches
No related tags found
No related merge requests found
...@@ -39,11 +39,11 @@ endif ...@@ -39,11 +39,11 @@ endif
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 -Wold-style-definition CFLAGS += -Wstrict-prototypes -Wold-style-definition
CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
endif endif
# Unwanted flags for c++ # Unwanted flags for c++
CXXUWFLAGS += -std=% CXXUWFLAGS += -std=%
CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
ifeq ($(LTO),1) ifeq ($(LTO),1)
$(warning Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.) $(warning Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment