summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2024-02-28 12:12:28 -0600
committerJoel Sherrill <joel@rtems.org>2024-03-05 08:49:41 -0600
commitda967ece679fc0d26434d33bdab597b49d514333 (patch)
treebb5565c67e511dc83797585869bba5694ac9412e /testsuites
parentcpukit/libtest: Remove unused variable (diff)
downloadrtems-da967ece679fc0d26434d33bdab597b49d514333.tar.bz2
testsuites/dhrystone: Initialize before use
This resovles a warning where a variable could be used before it is initialized in some code paths.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/benchmarks/dhrystone/dhry_1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuites/benchmarks/dhrystone/dhry_1.c b/testsuites/benchmarks/dhrystone/dhry_1.c
index 3ad2e7f204..ef6ecf9251 100644
--- a/testsuites/benchmarks/dhrystone/dhry_1.c
+++ b/testsuites/benchmarks/dhrystone/dhry_1.c
@@ -133,6 +133,7 @@ execution_start:
#ifdef __rtems__
/* avoid used uninitialized warning */
+ Int_1_Loc = 0;
Int_2_Loc = 0;
#endif