From bdf6ce34ce988a4b293f48e53aa4157db6ef1688 Mon Sep 17 00:00:00 2001 From: cremno Date: Tue, 26 Aug 2014 00:30:33 +0200 Subject: printf: cast variables to the expected type %x expects unsigned int and %p expects void * GCC emits a diagnostic about %p/void* in pedantic mode: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542 --- src/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parse.y') diff --git a/src/parse.y b/src/parse.y index 832689bae..0c0a9877f 100644 --- a/src/parse.y +++ b/src/parse.y @@ -6366,7 +6366,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset) break; default: - printf("node type: %d (0x%x)\n", (int)n, (int)n); + printf("node type: %d (0x%x)\n", n, (unsigned)n); break; } #endif -- cgit v1.2.3