Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 2015 07:36:55 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r290583 - stable/9/lib/libc/gen
Message-ID:  <201511090736.tA97at7T084297@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Nov  9 07:36:55 2015
New Revision: 290583
URL: https://svnweb.freebsd.org/changeset/base/290583

Log:
  MFstable/10 r290582:
  
  MFC r290179:
  
  Remove a set but unused variable in __getgroupmembership to fix a gcc 4.9+ warning
  
  Sponsored by: EMC / Isilon Storage Division

Modified:
  stable/9/lib/libc/gen/getgrent.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/lib/   (props changed)
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/gen/getgrent.c
==============================================================================
--- stable/9/lib/libc/gen/getgrent.c	Mon Nov  9 07:34:30 2015	(r290582)
+++ stable/9/lib/libc/gen/getgrent.c	Mon Nov  9 07:36:55 2015	(r290583)
@@ -659,14 +659,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? */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511090736.tA97at7T084297>