Enable -Werror for romcc
authorStefan Reinauer <reinauer@chromium.org>
Fri, 30 Mar 2012 19:11:04 +0000 (12:11 -0700)
committerPatrick Georgi <patrick@georgi-clan.de>
Sat, 31 Mar 2012 10:07:10 +0000 (12:07 +0200)
... and remove some dead code.

Change-Id: Id959bdf57af09db2a1f5742555c2dcabca38ac9a
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/818
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
util/romcc/Makefile
util/romcc/romcc.c

index 6543fbb3b7d8fac4d023f6b9a30c706b4f6d0c51..8242eb5668c6b194bba6830f7616faa6f21e29b7 100644 (file)
@@ -1,7 +1,7 @@
 # Move the configuration defines to makefile.conf
 CC=gcc
 CPPFLAGS=
 # 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
 CPROF_FLAGS=-pg -fprofile-arcs
 
 all: romcc test
index c7ef22366751613d40174a3170b1bd900d74b84e..1a939fb807ab6ec51ff2f7283727fa8062689d94 100644 (file)
@@ -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;
 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;
 
        first = state->first;
        ins = first;