summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/ttest01/test-checks.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-30 07:06:14 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-31 13:20:49 +0200
commit1be6dc18d33bc026f64e8244c66792c30b88b130 (patch)
tree567377b6e56f26bba1398a623e708fa99a6c9bf7 /testsuites/libtests/ttest01/test-checks.c
parentconfig: Include <rtems/posix/timer.h> on demand (diff)
downloadrtems-1be6dc18d33bc026f64e8244c66792c30b88b130.tar.bz2
libtest: Fix warnings without a pragma
It seems that recent GCC versions expect that functions with a "const type *" parameter will read from the referenced location. Update #4662.
Diffstat (limited to '')
-rw-r--r--testsuites/libtests/ttest01/test-checks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/libtests/ttest01/test-checks.c b/testsuites/libtests/ttest01/test-checks.c
index 06e1a959bf..fa5591121e 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 = 0;
- int b = 0;
+ int a;
+ int b;
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 = 0;
- int b = 0;
+ int a;
+ int b;
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 = 0;
+ int a;
T_not_null(&a);
T_not_null(NULL);