Author: stuge Date: 2008-08-02 03:44:27 +0200 (Sat, 02 Aug 2008) New Revision: 710
Modified: coreboot-v3/arch/x86/stage1.c Log: v3: Remove compiler warning about unused variable by only declaring when used
Signed-off-by: Peter Stuge peter@stuge.se Acked-by: Peter Stuge peter@stuge.se
Modified: coreboot-v3/arch/x86/stage1.c =================================================================== --- coreboot-v3/arch/x86/stage1.c 2008-08-01 23:19:05 UTC (rev 709) +++ coreboot-v3/arch/x86/stage1.c 2008-08-02 01:44:27 UTC (rev 710) @@ -114,8 +114,9 @@ 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;