From: Steve Dickson Date: Wed, 4 Aug 2010 14:22:13 +0000 (-0400) Subject: Removed warnings from network.c X-Git-Tag: nfs-utils-1-2-3-rc5~5 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=be5b2ed57b0e0a3da91f4ec785718302d0351199;p=nfs-utils.git Removed warnings from network.c network.c: In function 'nfs_verify_family': network.c:1366: warning: unused parameter 'family' Signed-off-by: Steve Dickson --- diff --git a/support/include/nfslib.h b/support/include/nfslib.h index f57f2e2..af242d3 100644 --- a/support/include/nfslib.h +++ b/support/include/nfslib.h @@ -160,4 +160,7 @@ void closeall(int min); int svctcp_socket (u_long __number, int __reuse); int svcudp_socket (u_long __number); + +#define UNUSED(x) UNUSED_ ## x __attribute__((unused)) + #endif /* NFSLIB_H */ diff --git a/utils/mount/network.c b/utils/mount/network.c index ffb18ab..d6b5205 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -53,6 +53,7 @@ #include "parse_opt.h" #include "network.h" #include "conffile.h" +#include "nfslib.h" #define PMAP_TIMEOUT (10) #define CONNECT_TIMEOUT (20) @@ -1363,7 +1364,7 @@ nfs_nfs_port(struct mount_options *options, unsigned long *port) sa_family_t config_default_family = AF_UNSPEC; static int -nfs_verify_family(sa_family_t family) +nfs_verify_family(sa_family_t UNUSED(family)) { return 1; }