diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-11-12 16:38:03 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-11-12 16:38:03 +0000 |
commit | 2e6727362410294ad39116a3d84d99746565ce05 (patch) | |
tree | fbe6a12f3fbbd5a2fc08a7c18df4e45faf356700 /src/lib/cbmem.c | |
parent | f9a72600a9fc4b6ed9aeebb7641c9209861c6548 (diff) | |
download | coreboot-2e6727362410294ad39116a3d84d99746565ce05.tar.xz |
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
Diffstat (limited to 'src/lib/cbmem.c')
-rw-r--r-- | src/lib/cbmem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/cbmem.c b/src/lib/cbmem.c index 023ddeaeb2..db761958a9 100644 --- a/src/lib/cbmem.c +++ b/src/lib/cbmem.c @@ -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) |