svn commit: r231042 - in head/sys/boot/ficl: . i386

Rui Paulo rpaulo at FreeBSD.org
Sun Feb 5 20:00:40 UTC 2012


Author: rpaulo
Date: Sun Feb  5 20:00:39 2012
New Revision: 231042
URL: http://svn.freebsd.org/changeset/base/231042

Log:
  Fix clang warnings.

Modified:
  head/sys/boot/ficl/fileaccess.c
  head/sys/boot/ficl/i386/sysdep.h

Modified: head/sys/boot/ficl/fileaccess.c
==============================================================================
--- head/sys/boot/ficl/fileaccess.c	Sun Feb  5 19:59:01 2012	(r231041)
+++ head/sys/boot/ficl/fileaccess.c	Sun Feb  5 20:00:39 2012	(r231042)
@@ -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 */
 }

Modified: head/sys/boot/ficl/i386/sysdep.h
==============================================================================
--- head/sys/boot/ficl/i386/sysdep.h	Sun Feb  5 19:59:01 2012	(r231041)
+++ head/sys/boot/ficl/i386/sysdep.h	Sun Feb  5 20:00:39 2012	(r231042)
@@ -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
 
 /*


More information about the svn-src-all mailing list