summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-08-08 16:49:23 +0300
committerDan McDonald <danmcd@joyent.com>2017-12-13 14:37:28 -0500
commita1a46df055863a267eb7a80b7961c9379bc457ec (patch)
tree70a1441e7a5a988969ae4d10ffdf4160481ae1fc /usr/src
parent8f33f62fe3b6ef9b5f9a849a5d2081f34e048be2 (diff)
downloadillumos-gate-a1a46df055863a267eb7a80b7961c9379bc457ec.tar.gz
8822 libsmbfs: variable set but not used
Reviewed by: Gary Mills <gary_mills@fastmail.fm> Reviewed by: ken mays <maybird1776@yahoo.com> Reviewed by: Yuri Pankov <yuripv@gmx.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/common/smbclnt/smbfs_ntacl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/common/smbclnt/smbfs_ntacl.c b/usr/src/common/smbclnt/smbfs_ntacl.c
index 6780d891ee..dcc0d55e79 100644
--- a/usr/src/common/smbclnt/smbfs_ntacl.c
+++ b/usr/src/common/smbclnt/smbfs_ntacl.c
@@ -66,16 +66,16 @@
#define FREESZ(p, sz) kmem_free(p, sz)
#else /* _KERNEL */
#define MALLOC(size) malloc(size)
-#ifndef lint
-#define FREESZ(p, sz) free(p)
-#else /* lint */
+/*
+ * Define FREESZ() as inline function so the compiler will not
+ * trigger variable set but not used warning for sz in calling function.
+ */
/* ARGSUSED */
-static void
-FREESZ(void *p, size_t sz)
+static inline void
+FREESZ(void *p, size_t sz __unused)
{
free(p);
}
-#endif /* lint */
#endif /* _KERNEL */
#define ERRCHK(expr) if ((error = expr) != 0) goto errout