From efb479c08bc1b03838c6493324d11d6164c78861 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Fri, 22 Jun 2012 08:53:36 +0200 Subject: ROMCC: fix unused attribute lookup commit 57cd1dd29679918afa650c2a7e82a474765f357d added this attribute, but with wrong length, so it actually never matched. Change-Id: Ibcc7816b5fa895faa66710cc29de38f129be6a2b Signed-off-by: Sven Schnelle Reviewed-on: http://review.coreboot.org/1133 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) Reviewed-by: Mathias Krause --- util/romcc/romcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/romcc') diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index b0f6198e5a..15e950cc67 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -24992,7 +24992,7 @@ static void compile(const char *filename, state.i_noinline = lookup(&state, "noinline", 8); state.i_always_inline = lookup(&state, "always_inline", 13); state.i_noreturn = lookup(&state, "noreturn", 8); - state.i_unused = lookup(&state, "unused", 8); + state.i_unused = lookup(&state, "unused", 6); /* Process the command line macros */ process_cmdline_macros(&state); -- cgit v1.2.3