]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed warnings from network.c
authorSteve Dickson <steved@redhat.com>
Wed, 4 Aug 2010 14:22:13 +0000 (10:22 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 9 Aug 2010 13:57:02 +0000 (09:57 -0400)
network.c: In function 'nfs_verify_family':
network.c:1366: warning: unused parameter 'family'

Signed-off-by: Steve Dickson <steved@redhat.com>
support/include/nfslib.h
utils/mount/network.c

index f57f2e20aef0d42bd59f5648722490f40ad86ef5..af242d36a59ebd355cf2f9911d8a54fdc0b3e64a 100644 (file)
@@ -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 */
index ffb18abc356fe9526e5caf2040daaed19273ede9..d6b5205a18e49438eab45329d60bf654c19da9ac 100644 (file)
@@ -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;
 }