diff options
author | Catalin Patulea | 2012-10-23 01:18:35 +0200 |
---|---|---|
committer | Blue Swirl | 2012-10-27 16:37:25 +0200 |
commit | 49cdaea18b6a827fbe9555efef12821909e59229 (patch) | |
tree | 6b3ac37bf1b21886ca6a16c5c87e1228c423b13f /tests/tcg/hello-i386.c | |
parent | target-sparc64: disable VGA cirrus (diff) | |
download | qemu-49cdaea18b6a827fbe9555efef12821909e59229.tar.gz qemu-49cdaea18b6a827fbe9555efef12821909e59229.tar.xz qemu-49cdaea18b6a827fbe9555efef12821909e59229.zip |
tests/tcg: fix a few warnings
Signed-off-by: Catalin Patulea <catalinp@google.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tests/tcg/hello-i386.c')
-rw-r--r-- | tests/tcg/hello-i386.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <asm/unistd.h> -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) |