qemu-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]