From: NeilBrown Date: Wed, 13 Oct 2010 16:08:41 +0000 (-0400) Subject: gcc complained: X-Git-Tag: nfs-utils-1-2-4-rc1~4 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=73c61fa5cd114fa6eae0e095724ed63aa66a4a6b;p=nfs-utils.git gcc complained: 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 Signed-off-by: NeilBrown Signed-off-by: Steve Dickson --- diff --git a/support/export/client.c b/support/export/client.c index dbfc2b1..ba2db8f 100644 --- a/support/export/client.c +++ b/support/export/client.c @@ -178,6 +178,7 @@ out_badprefix: static int init_netmask6(nfs_client *UNUSED(clp), const char *UNUSED(slash)) { + return 0; } #endif /* IPV6_SUPPORTED */