From f7d29d0174532a9ffe5cc77354a979a2bd604387 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Wed, 16 Mar 2011 14:26:40 +0000 Subject: [PATCH] elflink: Fix compiler warnings in hello.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the following warnings, hello.c: In function ‘hello_main’: hello.c:23:5: warning: too few arguments for format hello.c:20:9: warning: unused variable ‘i’ Signed-off-by: Matt Fleming --- com32/elflink/modules/hello.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/com32/elflink/modules/hello.c b/com32/elflink/modules/hello.c index cba63e2..b38f05c 100644 --- a/com32/elflink/modules/hello.c +++ b/com32/elflink/modules/hello.c @@ -17,10 +17,9 @@ static int hello_main(int argc, char **argv) { int *nums = NULL; - int i; nums = malloc(NUM_COUNT * sizeof(int)); - printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&hello_main), nums; + printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&hello_main, nums); free(nums); -- 2.7.4