summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2008-09-10 13:32:07 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2008-09-10 13:32:07 +0000
commit433f90563b876cd8183ccfb675730d2645110c0a (patch)
tree973d5f6787f81588458e3afbdf129f7daa845134
parentf78ed949267f7fcc65243c4778f5adf1496b73e8 (diff)
downloadnetsurf-433f90563b876cd8183ccfb675730d2645110c0a.tar.gz
netsurf-433f90563b876cd8183ccfb675730d2645110c0a.tar.bz2
Move where WARNFLAGS is set up so that we actually get warnings. Ahem, there's a lot of them.
svn path=/trunk/netsurf/; revision=5299
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 52afa24c1..9fa301eed 100644
--- a/Makefile
+++ b/Makefile
@@ -162,6 +162,16 @@ OBJROOT := build-$(HOST)-$(TARGET)$(SUBTARGET)
# General flag setup
# ----------------------------------------------------------------------------
+# 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 \
+ -Wnested-externs -Winline
+ifneq ($(GCCVER),2)
+ WARNFLAGS += -Wno-unused-parameter
+endif
+
+# Pull in the configuration
include Makefile.config
# 1: Feature name (ie, NETSURF_USE_BMP -> BMP)
@@ -457,14 +467,6 @@ $(DEPROOT)/created: $(OBJROOT)/created
$(Q)$(MKDIR) $(DEPROOT)
$(Q)$(TOUCH) $(DEPROOT)/created
-WARNFLAGS = -W -Wall -Wundef -Wpointer-arith \
- -Wcast-align -Wwrite-strings -Wstrict-prototypes \
- -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
- -Wnested-externs -Winline
-ifneq ($(GCCVER),2)
- WARNFLAGS += -Wno-unused-parameter
-endif
-
CLEANS := clean-target
include Makefile.sources