Skip to content

Commit a594369

Browse files
chirping78simbit18
authored andcommitted
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 <[email protected]>
1 parent aa3320f commit a594369

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

testing/testsuites/kernel/syscall/cases/getTimeofday_test.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ void test_nuttx_syscall_gettimeofday01(FAR void **state)
6666
int rtime = 3;
6767
struct timeval tv1;
6868
struct timeval tv2;
69-
unsigned long long cnt = 0;
7069

7170
signal(SIGALRM, breakout);
7271

@@ -90,6 +89,5 @@ void test_nuttx_syscall_gettimeofday01(FAR void **state)
9089

9190
sleep(1);
9291
tv1 = tv2;
93-
cnt++;
9492
}
9593
}

0 commit comments

Comments
 (0)