]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
gcc complained:
authorNeilBrown <neilb@suse.de>
Wed, 13 Oct 2010 16:08:41 +0000 (12:08 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 14 Oct 2010 14:26:59 +0000 (10:26 -0400)
client.c: In function 'init_netmask6':
client.c:181:1: warning: no return statement in function returning
non-void

and Suse' build system complained

I: Program returns random data in a function
E: nfs-utils no-return-in-nonvoid-function client.c:181

when I built without --enable-ipv6

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/client.c

index dbfc2b1449bfe251a74f5e8d08026e5e2ba63d40..ba2db8fa3ac8a5eb480158aab023c818e36eda18 100644 (file)
@@ -178,6 +178,7 @@ out_badprefix:
 static int
 init_netmask6(nfs_client *UNUSED(clp), const char *UNUSED(slash))
 {
+       return 0;
 }
 #endif /* IPV6_SUPPORTED */