The branch main has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=c65c63cf5104bff198854fd1d8fe277dfc1c1956
commit c65c63cf5104bff198854fd1d8fe277dfc1c1956 Author: Siva Mahadevan <[email protected]> AuthorDate: 2026-09-10 14:39:11 +0000 Commit: Siva Mahadevan <[email protected]> CommitDate: 2026-09-10 14:39:11 +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 --- 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);
