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

raiden00 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 9968fa064 benchmarks/cyclictest: fix comp. warning and optargs 
termination
9968fa064 is described below

commit 9968fa064bb3475fe19a63dc708ede7ac22fa0de
Author: Stepan Pressl <[email protected]>
AuthorDate: Sat Sep 13 16:06:57 2025 +0200

    benchmarks/cyclictest: fix comp. warning and optargs termination
    
    Fix reqtimeout_timer may be uninitilized.
    
    Signed-off-by: Stepan Pressl <[email protected]>
---
 benchmarks/cyclictest/cyclictest.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/benchmarks/cyclictest/cyclictest.c 
b/benchmarks/cyclictest/cyclictest.c
index 92bad1eb0..1727c54f1 100644
--- a/benchmarks/cyclictest/cyclictest.c
+++ b/benchmarks/cyclictest/cyclictest.c
@@ -148,6 +148,7 @@ static const struct option optargs[] =
   {"threads", optional_argument, 0, 't'},
   {"timer-device", optional_argument, 0, 'T'},
   {"policy", optional_argument, 0, 'y'},
+  {0, 0, 0, 0}
 };
 
 /****************************************************************************
@@ -525,7 +526,7 @@ static void *testthread(void *arg)
 
   while (running)
     {
-      /* This inicializes the stamp1.timeout field */
+      /* This initializes the stamp1.timeout field */
 
       if (config.meas_method == M_TIMER_API)
         {
@@ -925,7 +926,7 @@ int main(int argc, char *argv[])
         {
           reqtimeout_timer = config.interval;
         }
-      else if (config.wait_method == W_NANOSLEEP)
+      else
         {
           /* Multiply by 3 instead of 2, just to be sure */
 

Reply via email to