Description: Fix build with gcc 4.8
Author: Simon Richter <sjr@debian.org>
Bug-Debian: http://bugs.debian.org/701279
Last-Update: 2013-06-14

Index: foundry-0.0.20130703/tree/Makefile
===================================================================
--- foundry-0.0.20130703.orig/tree/Makefile	2013-06-30 18:53:14.000000000 +0200
+++ foundry-0.0.20130703/tree/Makefile	2013-07-03 15:12:01.614425450 +0200
@@ -100,8 +100,8 @@
 stage2/tree_cst_tree.o: stage2/tree_cst_tree.cpp
 	$(CXX) $(CXXFLAGS) -Istage2 -I. -o $@ -MD -MF stage2/.$*.d -c $<
 
-stage1/tree_bison_lex.o stage2/tree_bison_lex.o: CXXFLAGS+=-Wno-unused
-stage1/tree_cst_lex.o stage2/tree_cst_lex.o: CXXFLAGS+=-Wno-unused
+stage1/tree_bison_lex.o stage2/tree_bison_lex.o: CXXFLAGS+=-Wno-unused-parameter
+stage1/tree_cst_lex.o stage2/tree_cst_lex.o: CXXFLAGS+=-Wno-unused-parameter
 
 stage1/.%.d:
 	@mkdir -p $(@D)
Index: foundry-0.0.20130703/parse/Makefile
===================================================================
--- foundry-0.0.20130703.orig/parse/Makefile	2013-07-03 15:10:09.374430455 +0200
+++ foundry-0.0.20130703/parse/Makefile	2013-07-03 15:12:23.846424459 +0200
@@ -78,7 +78,7 @@
 stage1/%.o: stage1/%.cpp
 	$(CXX) $(CPPFLAGS) -Istage1 -I. $(CXXFLAGS) -MD -MF stage1/.$*.d -o $@ -c $<
 
-stage1/%_lex.o: CXXFLAGS+=-Wno-unused
+stage1/%_lex.o: CXXFLAGS+=-Wno-unused-parameter
 
 stage2/%.ll: %.fparse stage1/foundry-parse
 	stage1/foundry-parse -o $@ -l $<
@@ -119,7 +119,7 @@
 stage2/%.o: stage2/%.cpp
 	$(CXX) $(CPPFLAGS) -Istage2 -I. $(CXXFLAGS) -MD -MF stage2/.$*.d -o $@ -c $<
 
-stage2/%_lex.o: CXXFLAGS+=-Wno-unused
+stage2/%_lex.o: CXXFLAGS+=-Wno-unused-parameter
 
 DEPENDS = $(OBJECTS:%.o=.%.d)
 
