testing: getTimeofday_test: fix build warning

getTimeofday_test.c:68:22: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable]

Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
This commit is contained in:
chenxiaoyi 2025-02-06 17:42:44 +08:00 committed by simbit18
parent aa3320fab4
commit a59436985c

View file

@ -66,7 +66,6 @@ void test_nuttx_syscall_gettimeofday01(FAR void **state)
int rtime = 3;
struct timeval tv1;
struct timeval tv2;
unsigned long long cnt = 0;
signal(SIGALRM, breakout);
@ -90,6 +89,5 @@ void test_nuttx_syscall_gettimeofday01(FAR void **state)
sleep(1);
tv1 = tv2;
cnt++;
}
}