Add CONFIG_WARNINGS_ARE_ERRORS and set it for qemu.

Remove all remaining warnings from qemu.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4939 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Myles Watson
2009-11-12 16:38:03 +00:00
parent f9a72600a9
commit 2e67273624
12 changed files with 24 additions and 19 deletions

View File

@@ -35,9 +35,6 @@
#define MAX_CBMEM_ENTRIES 16
#define CBMEM_MAGIC 0x434f5245
static void *cbmem_base;
static int cbmem_size;
struct cbmem_entry {
u32 magic;
u32 id;
@@ -151,7 +148,7 @@ void *cbmem_add(u32 id, u64 size)
cbmem_toc[0].base += size;
cbmem_toc[0].size -= size;
return (void *)cbmem_toc[i].base;
return (void *)(u32)cbmem_toc[i].base;
}
void *cbmem_find(u32 id)