From 73c61fa5cd114fa6eae0e095724ed63aa66a4a6b Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 13 Oct 2010 12:08:41 -0400 Subject: [PATCH] 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 --- support/export/client.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.2