From 3da8dada523f6b32dd8cbe204638c297383878b3 Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Sun, 5 Feb 2012 20:00:39 +0000 Subject: [PATCH] Fix clang warnings. --- sys/boot/ficl/fileaccess.c | 2 +- sys/boot/ficl/i386/sysdep.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/boot/ficl/fileaccess.c b/sys/boot/ficl/fileaccess.c index 686c72153e02..2b981c870975 100644 --- a/sys/boot/ficl/fileaccess.c +++ b/sys/boot/ficl/fileaccess.c @@ -420,6 +420,6 @@ void ficlCompileFile(FICL_SYSTEM *pSys) ficlSetEnv(pSys, "file-ext", FICL_TRUE); #endif /* FICL_HAVE_FTRUNCATE */ #else - &pSys; + (void)pSys; #endif /* FICL_WANT_FILE */ } diff --git a/sys/boot/ficl/i386/sysdep.h b/sys/boot/ficl/i386/sysdep.h index e1900e2a4659..94fda2047ede 100644 --- a/sys/boot/ficl/i386/sysdep.h +++ b/sys/boot/ficl/i386/sysdep.h @@ -58,7 +58,7 @@ #include #if !defined IGNORE /* Macro to silence unused param warnings */ -#define IGNORE(x) &x +#define IGNORE(x) (void)x #endif /* @@ -405,7 +405,7 @@ void *ficlRealloc(void *p, size_t size); #if FICL_MULTITHREAD int ficlLockDictionary(short fLock); #else -#define ficlLockDictionary(x) 0 /* ignore */ +#define ficlLockDictionary(x) /* ignore */ #endif /*