From cbb648c001167f7762e0f1aa2af906d3a8e34715 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 30 Mar 2012 12:11:04 -0700 Subject: [PATCH] Enable -Werror for romcc ... and remove some dead code. Change-Id: Id959bdf57af09db2a1f5742555c2dcabca38ac9a Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/818 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/romcc/Makefile | 2 +- util/romcc/romcc.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/util/romcc/Makefile b/util/romcc/Makefile index 6543fbb3b..8242eb566 100644 --- a/util/romcc/Makefile +++ b/util/romcc/Makefile @@ -1,7 +1,7 @@ # Move the configuration defines to makefile.conf CC=gcc CPPFLAGS= -CFLAGS= -g -Wall $(CPPFLAGS) +CFLAGS= -g -Wall -Werror $(CPPFLAGS) CPROF_FLAGS=-pg -fprofile-arcs all: romcc test diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index c7ef22366..1a939fb80 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -9160,10 +9160,6 @@ static struct triple *decompose_index(struct compile_state *state, static void decompose_compound_types(struct compile_state *state) { struct triple *ins, *next, *first; -#if DEBUG_DECOMPOSE_HIRES - FILE *fp; - fp = state->dbgout; -#endif first = state->first; ins = first; -- 2.25.1