summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFam Zheng2017-09-08 11:16:57 +0200
committerAlex Bennée2018-06-20 21:22:34 +0200
commit553a5a6046df3a7a9826ba7c955670094d12802b (patch)
treec27de17df001569598b4628faa9d1e7473f9d609 /tests
parenttests/tcg: enable building for i386 (diff)
downloadqemu-553a5a6046df3a7a9826ba7c955670094d12802b.tar.gz
qemu-553a5a6046df3a7a9826ba7c955670094d12802b.tar.xz
qemu-553a5a6046df3a7a9826ba7c955670094d12802b.zip
tests/tcg/i386: Build fix for hello-i386
We have -Werror=missing-prototype, add a dummy prototype to avoid that warning. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/tcg/i386/hello-i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tcg/i386/hello-i386.c b/tests/tcg/i386/hello-i386.c
index fa00380de2..cfeb24b2f5 100644
--- a/tests/tcg/i386/hello-i386.c
+++ b/tests/tcg/i386/hello-i386.c
@@ -20,6 +20,7 @@ static inline int write(int fd, const char * buf, int len)
return status;
}
+void _start(void);
void _start(void)
{
write(1, "Hello World\n", 12);