This is an automated email from the ASF dual-hosted git repository.

simbit18 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new a59436985 testing: getTimeofday_test: fix build warning
a59436985 is described below

commit a59436985c6119945e99ded5e651fa2edfce81fa
Author: chenxiaoyi <[email protected]>
AuthorDate: Thu Feb 6 17:42:44 2025 +0800

    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]>
---
 testing/testsuites/kernel/syscall/cases/getTimeofday_test.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c 
b/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c
index 92861fd21..a4ccb98af 100644
--- a/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c
+++ b/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c
@@ -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++;
     }
 }

Reply via email to