summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-09-03 18:24:44 +0100
committerVincent Sanders <vince@kyllikki.org>2014-09-03 18:24:44 +0100
commit58c2ca0624a2ecd6bc6498eb035479442bee7c42 (patch)
treeded501045a1749a352bfed5f64aead55ed5a4618 /Makefile
parentc695d3d0074687e767b68ca9d1412a5bc5303178 (diff)
downloadnetsurf-58c2ca0624a2ecd6bc6498eb035479442bee7c42.tar.gz
netsurf-58c2ca0624a2ecd6bc6498eb035479442bee7c42.tar.bz2
OpenBSD system headers are not compatible with redundant declaration warning so remove on that OS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 864c5bd32..974691a90 100644
--- a/Makefile
+++ b/Makefile
@@ -447,7 +447,7 @@ endef
# Set up the WARNFLAGS here so that they can be overridden in the Makefile.config
WARNFLAGS = -W -Wall -Wundef -Wpointer-arith \
-Wcast-align -Wwrite-strings -Wstrict-prototypes \
- -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
+ -Wmissing-prototypes -Wmissing-declarations \
-Wnested-externs -Wuninitialized
ifneq ($(CC_MAJOR),2)
WARNFLAGS += -Wno-unused-parameter
@@ -456,6 +456,13 @@ endif
ifeq ($(call cc_ver_ge,4,6),1)
WARNFLAGS += -Wno-unused-but-set-variable
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
include Makefile.defaults