diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2022-08-16 12:04:55 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-08-19 15:34:47 -0500 |
commit | 978022eeb0b7f01d84a32df78e37cdddcc2d780a (patch) | |
tree | 1c8ff2257496e5558dc1e06c075876b05031b5f4 /testsuites/libtests/ttest01/test-checks.c | |
parent | malloctest/init.c: Added pragmas to address gcc 12 warnings (diff) | |
download | rtems-978022eeb0b7f01d84a32df78e37cdddcc2d780a.tar.bz2 |
ttest01/test-checks.c: Initialize variables
These uninitialized variables were causing warnings to be generated.
Updates #4662
Diffstat (limited to '')
-rw-r--r-- | testsuites/libtests/ttest01/test-checks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/libtests/ttest01/test-checks.c b/testsuites/libtests/ttest01/test-checks.c index fa5591121e..06e1a959bf 100644 --- a/testsuites/libtests/ttest01/test-checks.c +++ b/testsuites/libtests/ttest01/test-checks.c @@ -90,8 +90,8 @@ T_TEST_CASE(step_assert_eq_ptr) T_TEST_CASE(check_eq_ptr) { - int a; - int b; + int a = 0; + int b = 0; T_eq_ptr(&a, &a); T_eq_ptr(&a, &b); @@ -115,8 +115,8 @@ T_TEST_CASE(step_assert_ne_ptr) T_TEST_CASE(check_ne_ptr) { - int a; - int b; + int a = 0; + int b = 0; T_ne_ptr(&a, &b); T_ne_ptr(&a, &a); @@ -162,7 +162,7 @@ T_TEST_CASE(step_assert_not_null) T_TEST_CASE(check_not_null) { - int a; + int a = 0; T_not_null(&a); T_not_null(NULL); |