summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2012-02-05 20:00:39 +0000
committerrpaulo <rpaulo@FreeBSD.org>2012-02-05 20:00:39 +0000
commitac5dbeb938d63729dd227236f6de4aadd73c0b41 (patch)
tree7f84099f35a280f0778be85d3c19dec5a7075ffe /sys/boot/ficl
parentd550d4616bee32147f04538030e7fb2fafeb594f (diff)
downloadFreeBSD-src-ac5dbeb938d63729dd227236f6de4aadd73c0b41.zip
FreeBSD-src-ac5dbeb938d63729dd227236f6de4aadd73c0b41.tar.gz
Fix clang warnings.
Diffstat (limited to 'sys/boot/ficl')
-rw-r--r--sys/boot/ficl/fileaccess.c2
-rw-r--r--sys/boot/ficl/i386/sysdep.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/ficl/fileaccess.c b/sys/boot/ficl/fileaccess.c
index 686c721..2b981c8 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 e1900e2..94fda20 100644
--- a/sys/boot/ficl/i386/sysdep.h
+++ b/sys/boot/ficl/i386/sysdep.h
@@ -58,7 +58,7 @@
#include <assert.h>
#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
/*
OpenPOWER on IntegriCloud