svn commit: r336933 - head/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Mon Jul 30 20:25:33 UTC 2018
Author: rmacklem
Date: Mon Jul 30 20:25:32 2018
New Revision: 336933
URL: https://svnweb.freebsd.org/changeset/base/336933
Log:
Silence newer gcc warnings.
Newer versions of gcc generate "set, but not used" warnings.
Add __unused macros to silence these warnings.
Although the variables are not being used, they are values parsed from
arguments to callback RPCs that might be needed in the future.
Requested by: mmacy
Modified:
head/sys/fs/nfsclient/nfs_clstate.c
Modified: head/sys/fs/nfsclient/nfs_clstate.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clstate.c Mon Jul 30 20:13:38 2018 (r336932)
+++ head/sys/fs/nfsclient/nfs_clstate.c Mon Jul 30 20:25:32 2018 (r336933)
@@ -3237,7 +3237,7 @@ nfscl_docb(struct nfsrv_descript *nd, NFSPROC_T *p)
u_int32_t *tl;
struct nfsclclient *clp;
struct nfscldeleg *dp = NULL;
- int numops, taglen = -1, error = 0, trunc;
+ int numops, taglen = -1, error = 0, trunc __unused;
u_int32_t minorvers = 0, retops = 0, *retopsp = NULL, *repp, cbident;
u_char tag[NFSV4_SMALLSTR + 1], *tagstr;
vnode_t vp = NULL;
@@ -3247,7 +3247,7 @@ nfscl_docb(struct nfsrv_descript *nd, NFSPROC_T *p)
mount_t mp;
nfsattrbit_t attrbits, rattrbits;
nfsv4stateid_t stateid;
- uint32_t seqid, slotid = 0, highslot, cachethis;
+ uint32_t seqid, slotid = 0, highslot, cachethis __unused;
uint8_t sessionid[NFSX_V4SESSIONID];
struct mbuf *rep;
struct nfscllayout *lyp;
More information about the svn-src-head
mailing list