[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 37/46] tests/tcg/alpha: fix warnings about write(
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v3 37/46] tests/tcg/alpha: fix warnings about write() |
Date: |
Tue, 24 Apr 2018 16:23:56 +0100 |
Although we are not linking to libc we still need a function prototype
for the write we have defined in crt.S.
Signed-off-by: Alex Bennée <address@hidden>
---
tests/tcg/alpha/hello-alpha.c | 2 ++
tests/tcg/alpha/test-cond.c | 1 +
tests/tcg/alpha/test-ovf.c | 2 ++
3 files changed, 5 insertions(+)
diff --git a/tests/tcg/alpha/hello-alpha.c b/tests/tcg/alpha/hello-alpha.c
index 79892e6522..f1207a2411 100644
--- a/tests/tcg/alpha/hello-alpha.c
+++ b/tests/tcg/alpha/hello-alpha.c
@@ -1,3 +1,5 @@
+void write(int, char*, int);
+
int main (void)
{
write (1, "hello\n", 6);
diff --git a/tests/tcg/alpha/test-cond.c b/tests/tcg/alpha/test-cond.c
index 74adffaa69..b5774e4d6d 100644
--- a/tests/tcg/alpha/test-cond.c
+++ b/tests/tcg/alpha/test-cond.c
@@ -1,3 +1,4 @@
+void write(int, char*, int);
#ifdef TEST_CMOV
diff --git a/tests/tcg/alpha/test-ovf.c b/tests/tcg/alpha/test-ovf.c
index 01c80e7525..7ecf7e4bce 100644
--- a/tests/tcg/alpha/test-ovf.c
+++ b/tests/tcg/alpha/test-ovf.c
@@ -1,3 +1,5 @@
+void write(int, char*, int);
+
static long test_subqv (long a, long b)
{
long res;
--
2.17.0
- [Qemu-devel] [PATCH v3 24/46] tests/tcg/i386/test-i386: use modern vector_size attributes, (continued)
- [Qemu-devel] [PATCH v3 37/46] tests/tcg/alpha: fix warnings about write(),
Alex Bennée <=
- [Qemu-devel] [PATCH v3 26/46] tests/tcg: move ARM specific tests into subdir, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 39/46] tests/tcg: enable building for m68k, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 38/46] tests/tcg: enable building for HPPA, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 27/46] tests/tcg/arm: fix up test-arm-iwmmxt test, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 44/46] Makefile.target: add (clean-)guest-tests targets, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 13/46] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/04/24