OpenBSD system headers are not compatible with redundant declaration warning so remove on that OS
This commit is contained in:
parent
c695d3d007
commit
58c2ca0624
9
Makefile
9
Makefile
|
@ -447,7 +447,7 @@ endef
|
||||||
# Set up the WARNFLAGS here so that they can be overridden in the Makefile.config
|
# Set up the WARNFLAGS here so that they can be overridden in the Makefile.config
|
||||||
WARNFLAGS = -W -Wall -Wundef -Wpointer-arith \
|
WARNFLAGS = -W -Wall -Wundef -Wpointer-arith \
|
||||||
-Wcast-align -Wwrite-strings -Wstrict-prototypes \
|
-Wcast-align -Wwrite-strings -Wstrict-prototypes \
|
||||||
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
|
-Wmissing-prototypes -Wmissing-declarations \
|
||||||
-Wnested-externs -Wuninitialized
|
-Wnested-externs -Wuninitialized
|
||||||
ifneq ($(CC_MAJOR),2)
|
ifneq ($(CC_MAJOR),2)
|
||||||
WARNFLAGS += -Wno-unused-parameter
|
WARNFLAGS += -Wno-unused-parameter
|
||||||
|
@ -456,6 +456,13 @@ endif
|
||||||
ifeq ($(call cc_ver_ge,4,6),1)
|
ifeq ($(call cc_ver_ge,4,6),1)
|
||||||
WARNFLAGS += -Wno-unused-but-set-variable
|
WARNFLAGS += -Wno-unused-but-set-variable
|
||||||
endif
|
endif
|
||||||
|
# deal with chaging warning flags on differing HOST systems
|
||||||
|
ifeq ($(HOST),OpenBSD)
|
||||||
|
# OpenBSD headers are not compatible with redundant declaration warning
|
||||||
|
WARNFLAGS += -Wno-redundant-decls
|
||||||
|
else
|
||||||
|
WARNFLAGS += -Wredundant-decls
|
||||||
|
endif
|
||||||
|
|
||||||
# Pull in the configuration
|
# Pull in the configuration
|
||||||
include Makefile.defaults
|
include Makefile.defaults
|
||||||
|
|
Loading…
Reference in New Issue