From 768ceb4ead2c1a78b2af047e8f54f2472b34e849 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 3 Oct 2021 12:02:58 +0900 Subject: Cast to void pointer for `%p` in commented out code [ci skip] --- compile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index e9295a47b4..1e88dc242d 100644 --- a/compile.c +++ b/compile.c @@ -1181,11 +1181,11 @@ debug_list(ISEQ_ARG_DECLARE LINK_ANCHOR *const anchor, LINK_ELEMENT *cur) { LINK_ELEMENT *list = FIRST_ELEMENT(anchor); printf("----\n"); - printf("anch: %p, frst: %p, last: %p\n", &anchor->anchor, - anchor->anchor.next, anchor->last); + printf("anch: %p, frst: %p, last: %p\n", (void *)&anchor->anchor, + (void *)anchor->anchor.next, (void *)anchor->last); while (list) { - printf("curr: %p, next: %p, prev: %p, type: %d\n", list, list->next, - list->prev, (int)list->type); + printf("curr: %p, next: %p, prev: %p, type: %d\n", (void *)list, (void *)list->next, + (void *)list->prev, (int)list->type); list = list->next; } printf("----\n"); -- cgit v1.2.3