From 49cdaea18b6a827fbe9555efef12821909e59229 Mon Sep 17 00:00:00 2001 From: Catalin Patulea Date: Mon, 22 Oct 2012 19:18:35 -0400 Subject: tests/tcg: fix a few warnings Signed-off-by: Catalin Patulea Signed-off-by: Blue Swirl --- tests/tcg/hello-i386.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/tcg/hello-i386.c') diff --git a/tests/tcg/hello-i386.c b/tests/tcg/hello-i386.c index 86afc34fb1..fa00380de2 100644 --- a/tests/tcg/hello-i386.c +++ b/tests/tcg/hello-i386.c @@ -1,6 +1,6 @@ #include -static inline volatile void exit(int status) +static inline void exit(int status) { int __res; __asm__ volatile ("movl %%ecx,%%ebx\n"\ @@ -17,6 +17,7 @@ static inline int write(int fd, const char * buf, int len) "popl %%ebx\n"\ : "=a" (status) \ : "0" (__NR_write),"S" ((long)(fd)),"c" ((long)(buf)),"d" ((long)(len))); + return status; } void _start(void) -- cgit v1.2.3