[rtems commit] dl09/dl-load.c: Fix gcc 12 warning
Joel Sherrill
joel at rtems.org
Fri Aug 19 20:46:12 UTC 2022
Module: rtems
Branch: master
Commit: dc0dcccf419c8edcdcd673e019e9ebffbddc59b0
Changeset: http://git.rtems.org/rtems/commit/?id=dc0dcccf419c8edcdcd673e019e9ebffbddc59b0
Author: Ryan Long <ryan.long at oarcorp.com>
Date: Tue Aug 16 12:03:17 2022 -0500
dl09/dl-load.c: Fix gcc 12 warning
Changed format of size_t variable being printed.
Updates #4662
---
testsuites/libtests/dl09/dl-load.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testsuites/libtests/dl09/dl-load.c b/testsuites/libtests/dl09/dl-load.c
index 1de7c8fa29..ce9708c3a3 100644
--- a/testsuites/libtests/dl09/dl-load.c
+++ b/testsuites/libtests/dl09/dl-load.c
@@ -171,7 +171,7 @@ static void dl_object_open (object_def* od, objects* o)
if (od->space != 0)
{
o->space = malloc (od->space);
- printf("space alloc: %s: %d: %p\n", od->name, od->space, o->space);
+ printf("space alloc: %s: %zd: %p\n", od->name, od->space, o->space);
rtems_test_assert (o->space != NULL);
}
dl_load_dump ();
More information about the vc
mailing list