svn commit: r319046 - head/lib/libc/tests/nss

Ngie Cooper ngie at FreeBSD.org
Sun May 28 05:31:20 UTC 2017


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, ":");


More information about the svn-src-all mailing list