From 1564bcac15db6f4068c180d07633fac363ef6058 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sat, 2 Aug 2008 01:44:27 +0000 Subject: [PATCH] v3: Remove compiler warning about unused variable by only declaring when used Signed-off-by: Peter Stuge Acked-by: Peter Stuge git-svn-id: svn://coreboot.org/repository/coreboot-v3@710 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/stage1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/stage1.c b/arch/x86/stage1.c index f8b3a01852..dcd0ab3942 100644 --- a/arch/x86/stage1.c +++ b/arch/x86/stage1.c @@ -114,8 +114,9 @@ int legacy(struct mem_file *archive, char *name, void *where, struct lb_memory * void __attribute__((stdcall)) stage1_main(u32 bist) { int ret; - struct mem_file archive, result; + struct mem_file archive; #ifdef CONFIG_PAYLOAD_ELF_LOADER + struct mem_file result; int elfboot_mem(struct lb_memory *mem, void *where, int size); #endif /* CONFIG_PAYLOAD_ELF_LOADER */ void *entry;