mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
aa3320fab4
commit
a59436985c
1 changed files with 0 additions and 2 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue