Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2012 20:00:39 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r231042 - in head/sys/boot/ficl: . i386
Message-ID:  <201202052000.q15K0d5g098790@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202052000.q15K0d5g098790>