During the window of buggy autoconf, I saw this evidence of a latent bug for 
platforms that lack getgroups:

group-list.c: In function `print_group_list':
group-list.c:89: warning: control reaches end of non-void function

OK to commit?

From: Eric Blake <[EMAIL PROTECTED]>
Date: Fri, 24 Oct 2008 11:42:29 -0600
Subject: [PATCH] group-list: avoid compiler warning

* src/group-list.c (print_group_list) [!HAVE_GETGROUPS]: Always return value.
---
 src/group-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/group-list.c b/src/group-list.c
index 96438d9..3547ed6 100644
--- a/src/group-list.c
+++ b/src/group-list.c
@@ -83,9 +83,9 @@ print_group_list (const char *username,
             ok = false;
         }
     free (groups);
-    return ok;
   }
 #endif /* HAVE_GETGROUPS */
+  return ok;
 }
 
 
-- 
1.6.0.2





_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to