From 2f6518d639b69faa40351d42bae1671857894fca Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 2 Mar 2026 02:56:05 +0100 Subject: [PATCH] libtests: Fix variable 'i' set but not used Fix this warning. Signed-off-by: Sebastian Huber --- testsuites/libtests/capture01/test1.c | 4 +--- testsuites/samples/capture/test1.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/testsuites/libtests/capture01/test1.c b/testsuites/libtests/capture01/test1.c index f6a157f676..e18cd0a5da 100644 --- a/testsuites/libtests/capture01/test1.c +++ b/testsuites/libtests/capture01/test1.c @@ -93,10 +93,8 @@ static void capture_CT1b( rtems_task_argument arg ) { (void) arg; - volatile int i; - while ( !capture_CT1c_deleted ) { - i++; + /* Busy wait */ } capture_CT1b_deleted = 1; diff --git a/testsuites/samples/capture/test1.c b/testsuites/samples/capture/test1.c index 7652f20465..b36befe9bf 100644 --- a/testsuites/samples/capture/test1.c +++ b/testsuites/samples/capture/test1.c @@ -92,10 +92,8 @@ static void capture_CT1b( rtems_task_argument arg ) { (void) arg; - volatile int i; - while ( !capture_CT1c_deleted ) { - i++; + /* Busy wait */ } capture_CT1b_deleted = 1;