r5299 dsilvers - /trunk/netsurf/Makefile

netsurf at semichrome.net netsurf at semichrome.net
Wed Sep 10 14:32:08 BST 2008


Author: dsilvers
Date: Wed Sep 10 08:32:07 2008
New Revision: 5299

URL: http://source.netsurf-browser.org?rev=5299&view=rev
Log:
Move where WARNFLAGS is set up so that we actually get warnings. Ahem, there's a lot of them.

Modified:
    trunk/netsurf/Makefile

Modified: trunk/netsurf/Makefile
URL: http://source.netsurf-browser.org/trunk/netsurf/Makefile?rev=5299&r1=5298&r2=5299&view=diff
==============================================================================
--- trunk/netsurf/Makefile (original)
+++ trunk/netsurf/Makefile Wed Sep 10 08:32:07 2008
@@ -162,6 +162,16 @@
 # 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)
@@ -456,14 +466,6 @@
 	$(VQ)echo "   MKDIR: $(DEPROOT)"
 	$(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
 




More information about the netsurf-commits mailing list