diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2017-01-14 04:13:28 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2017-01-14 04:13:28 +0000 |
commit | 5e8fcdfe1bf6ca477d41181f53af9795ac4e70c5 (patch) | |
tree | c674dd90d8e2a96b73f86e60c2d480821a4eb7c9 /sys/kern | |
parent | 54ff563fb9bdd13a0fb0f6cce8c0eb54f69de019 (diff) | |
download | src-5e8fcdfe1bf6ca477d41181f53af9795ac4e70c5.tar.gz src-5e8fcdfe1bf6ca477d41181f53af9795ac4e70c5.zip |
Fix -Wunused on gcc 4.9 (x was set but not used)
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Notes
Notes:
svn path=/head/; revision=312112
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_unit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c index 5a627625cb6c..6d7f69e65015 100644 --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -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; |