svn commit: r290179 - head/lib/libc/gen

Garrett Cooper ngie at FreeBSD.org
Fri Oct 30 05:50:07 UTC 2015


Author: ngie
Date: Fri Oct 30 05:50:05 2015
New Revision: 290179
URL: https://svnweb.freebsd.org/changeset/base/290179

Log:
  Remove a set but unused variable in __getgroupmembership to fix a gcc 4.9+ warning
  
  MFC after: 1 week
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/lib/libc/gen/getgrent.c

Modified: head/lib/libc/gen/getgrent.c
==============================================================================
--- head/lib/libc/gen/getgrent.c	Fri Oct 30 05:33:38 2015	(r290178)
+++ head/lib/libc/gen/getgrent.c	Fri Oct 30 05:50:05 2015	(r290179)
@@ -660,14 +660,13 @@ __getgroupmembership(const char *uname, 
 		NS_FALLBACK_CB(getgroupmembership_fallback)
 		{ NULL, NULL, NULL }
 	};
-	int rv;
 
 	assert(uname != NULL);
 	/* groups may be NULL if just sizing when invoked with maxgrp = 0 */
 	assert(grpcnt != NULL);
 
 	*grpcnt = 0;
-	rv = _nsdispatch(NULL, dtab, NSDB_GROUP, "getgroupmembership",
+	(void)_nsdispatch(NULL, dtab, NSDB_GROUP, "getgroupmembership",
 	    defaultsrc, uname, agroup, groups, maxgrp, grpcnt);
 
 	/* too many groups found? */


More information about the svn-src-head mailing list