diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-08-30 07:06:14 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-08-31 13:20:49 +0200 |
commit | 1be6dc18d33bc026f64e8244c66792c30b88b130 (patch) | |
tree | 567377b6e56f26bba1398a623e708fa99a6c9bf7 /cpukit/libtest | |
parent | config: Include <rtems/posix/timer.h> on demand (diff) | |
download | rtems-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 'cpukit/libtest')
-rw-r--r-- | cpukit/libtest/t-test-checks.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libtest/t-test-checks.c b/cpukit/libtest/t-test-checks.c index c86596521b..1a278b55ec 100644 --- a/cpukit/libtest/t-test-checks.c +++ b/cpukit/libtest/t-test-checks.c @@ -30,27 +30,27 @@ #include <inttypes.h> void -T_check_eq_ptr(const T_check_context_msg *t, const void *a, const void *e) +T_check_eq_ptr(const T_check_context_msg *t, uintptr_t a, uintptr_t e) { T_check(&t->base, a == e, "%s", t->msg); } void -T_check_ne_ptr(const T_check_context_msg *t, const void *a, const void *e) +T_check_ne_ptr(const T_check_context_msg *t, uintptr_t a, uintptr_t e) { T_check(&t->base, a != e, "%s", t->msg); } void -T_check_null(const T_check_context_msg *t, const void *a) +T_check_null(const T_check_context_msg *t, uintptr_t a) { - T_check(&t->base, a == NULL, "%s == NULL", t->msg); + T_check(&t->base, a == 0, "%s == NULL", t->msg); } void -T_check_not_null(const T_check_context_msg *t, const void *a) +T_check_not_null(const T_check_context_msg *t, uintptr_t a) { - T_check(&t->base, a != NULL, "%s != NULL", t->msg); + T_check(&t->base, a != 0, "%s != NULL", t->msg); } void |