@@ -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;
@@ -41,6 +41,7 @@
#include <rpc/pmap_prot.h>
#include "sockaddr.h"
+#include "nfslib.h"
#include "nfsrpc.h"
#ifdef HAVE_LIBTIRPC
@@ -519,7 +520,7 @@ CLIENT *nfs_get_priv_rpcclient(const struct sockaddr *sap,
* Returns program number of first name to be successfully looked
* up, or the default program number if all lookups fail.
*/
-rpcprog_t nfs_getrpcbyname(const rpcprog_t program, const char *table[])
+rpcprog_t nfs_getrpcbyname(const rpcprog_t program, const char *UNUSED(table[]))
{
#ifdef HAVE_GETRPCBYNAME
struct rpcent *entry;
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> --- support/misc/xstat.c | 3 ++- support/nfs/rpc_socket.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)