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
 
 /*
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to