Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2017 05:31:18 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319046 - head/lib/libc/tests/nss
Message-ID:  <201705280531.v4S5VIie015385@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun May 28 05:31:18 2017
New Revision: 319046
URL: https://svnweb.freebsd.org/changeset/base/319046

Log:
  Fix a -Wunused-but-set-variable warning reported by gcc 6.3.0
  
  MFC after:	3 days
  Sponsored by:	Dell EMC Isilon

Modified:
  head/lib/libc/tests/nss/getaddrinfo_test.c

Modified: head/lib/libc/tests/nss/getaddrinfo_test.c
==============================================================================
--- head/lib/libc/tests/nss/getaddrinfo_test.c	Sun May 28 05:26:45 2017	(r319045)
+++ head/lib/libc/tests/nss/getaddrinfo_test.c	Sun May 28 05:31:18 2017	(r319046)
@@ -310,12 +310,11 @@ addrinfo_read_snapshot_func(struct addri
 {
 	struct addrinfo *ai2;
 	char *s, *ps;
-	int i, rv;
+	int rv;
 
 	printf("1 line read from snapshot:\n%s\n", line);
 
 	rv = 0;
-	i = 0;
 	ps = line;
 
 	s = strsep(&ps, ":");



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