summaryrefslogtreecommitdiff
path: root/support/misc
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-09-05 07:45:10 -0400
committerSteve Dickson <steved@redhat.com>2019-09-05 08:05:26 -0400
commitd0cd0c468146c0b5284bc895a8a9ef4096e5dfee (patch)
treed367fe9d0388d02020991b72a36a4d72ff0feaf1 /support/misc
parent0240df0e8ccf7be2706a6a10a2a620f8eda55275 (diff)
downloadnfs-utils-d0cd0c468146c0b5284bc895a8a9ef4096e5dfee.tar.gz
Annotate unused fields with UNUSED
There are some parameters that may be potentially unused. Add the UNUSED macro to avoid any warnings. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/misc')
-rw-r--r--support/misc/xstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/misc/xstat.c b/support/misc/xstat.c
index 4c997ee..661e29e 100644
--- a/support/misc/xstat.c
+++ b/support/misc/xstat.c
@@ -9,6 +9,7 @@
#include <sys/sysmacros.h>
#include <unistd.h>
+#include "nfslib.h"
#include "xstat.h"
#ifdef HAVE_FSTATAT
@@ -66,7 +67,7 @@ statx_stat_nosync(int fd, const char *pathname, struct stat *statbuf, int flags)
#else
static int
-statx_stat_nosync(int fd, const char *pathname, struct stat *statbuf, int flags)
+statx_stat_nosync(int UNUSED(fd), const char *UNUSED(pathname), struct stat *UNUSED(statbuf), int UNUSED(flags))
{
errno = ENOSYS;
return -1;