From 2e6727362410294ad39116a3d84d99746565ce05 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 12 Nov 2009 16:38:03 +0000 Subject: Add CONFIG_WARNINGS_ARE_ERRORS and set it for qemu. Remove all remaining warnings from qemu. Signed-off-by: Myles Watson Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4939 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/cbmem.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lib') 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) -- cgit v1.2.3