git: 17f3aaea09d5 - stable/15 - tests/kqueue: remove unused variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 14:21:51 UTC
The branch stable/15 has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=17f3aaea09d59315b039b7e7afd4a0c2614f8be7
commit 17f3aaea09d59315b039b7e7afd4a0c2614f8be7
Author: Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-09-10 14:39:11 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-09-14 14:02:36 +0000
tests/kqueue: remove unused variable
This fixes the build with gcc 16 after the changes
to -Wunused*[0].
[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused
Reviewed by: markj
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59542
(cherry picked from commit c65c63cf5104bff198854fd1d8fe277dfc1c1956)
---
tests/sys/kqueue/libkqueue/timer.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tests/sys/kqueue/libkqueue/timer.c b/tests/sys/kqueue/libkqueue/timer.c
index 5116aea98b83..9955e6d06a30 100644
--- a/tests/sys/kqueue/libkqueue/timer.c
+++ b/tests/sys/kqueue/libkqueue/timer.c
@@ -633,7 +633,6 @@ test_update_timing(void)
#define MAX_SLEEP 1500
const char *test_id = "kevent(EVFILT_TIMER (UPDATE TIMING), EV_ADD | EV_ONESHOT)";
struct kevent kev;
- int iteration;
int sleeptime;
long elapsed;
uint64_t start, stop;
@@ -647,10 +646,7 @@ test_update_timing(void)
* is to show that in all cases the only timer event that is
* received is from the update and not the original timer add.
*/
- for (sleeptime = MIN_SLEEP, iteration = 1;
- sleeptime < MAX_SLEEP;
- ++sleeptime, ++iteration) {
-
+ for (sleeptime = MIN_SLEEP; sleeptime < MAX_SLEEP; ++sleeptime) {
/* First set the timer to 1 ms */
EV_SET(&kev, vnode_fd, EVFILT_TIMER, EV_ADD | EV_ONESHOT,
NOTE_USECONDS, MS_TO_US(1), NULL);