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> git-svn-id: svn://coreboot.org/repository/coreboot-v3@710 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
1b1d130d92
commit
1564bcac15
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue