diff mbox series

[v3,37/46] tests/tcg/alpha: fix warnings about write()

Message ID 20180424152405.10304-38-alex.bennee@linaro.org
State New
Headers show
Series fix building of tests/tcg | expand

Commit Message

Alex Bennée April 24, 2018, 3:23 p.m. UTC
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 <alex.bennee@linaro.org>

---
 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(+)

-- 
2.17.0
diff mbox series

Patch

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;