svn commit: r312319 - stable/11/sys/kern
Ngie Cooper
ngie at FreeBSD.org
Tue Jan 17 01:52:59 UTC 2017
Author: ngie
Date: Tue Jan 17 01:52:58 2017
New Revision: 312319
URL: https://svnweb.freebsd.org/changeset/base/312319
Log:
MFC r312112:
Fix -Wunused on gcc 4.9 (x was set but not used)
Modified:
stable/11/sys/kern/subr_unit.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/subr_unit.c
==============================================================================
--- stable/11/sys/kern/subr_unit.c Tue Jan 17 01:29:03 2017 (r312318)
+++ stable/11/sys/kern/subr_unit.c Tue Jan 17 01:52:58 2017 (r312319)
@@ -986,7 +986,7 @@ main(int argc, char **argv)
long count = 10000; /* Number of unrs to test */
long reps = 1, m;
int ch;
- u_int i, x, j;
+ u_int i, j;
verbose = false;
@@ -999,7 +999,7 @@ main(int argc, char **argv)
usage(argv);
exit(2);
}
-
+
break;
case 'v':
verbose = true;
@@ -1026,7 +1026,6 @@ main(int argc, char **argv)
printf("sizeof(struct unrb) %zu\n", sizeof(struct unrb));
printf("sizeof(struct unrhdr) %zu\n", sizeof(struct unrhdr));
printf("NBITS %lu\n", (unsigned long)NBITS);
- x = 1;
for (m = 0; m < count * reps; m++) {
j = random();
i = (j >> 1) % count;
More information about the svn-src-stable
mailing list