shithub: riscv

Download patch

ref: 3bb4169be1566faca886b232376e85b1ebf10fb3
parent: f29279f1401cf558cce457cfb9e31981f651104c
author: Jacob Moody <moody@posixcafe.org>
date: Sat May 13 17:22:03 EDT 2023

5c, kc, qc: fix implicit return type of samaddr

The samaddr definitions in the other compilers have
the return type marked correctly.

--- a/sys/src/cmd/5c/txt.c
+++ b/sys/src/cmd/5c/txt.c
@@ -1216,6 +1216,7 @@
 		print("%P\n", p);
 }
 
+int
 samaddr(Node *f, Node *t)
 {
 
--- a/sys/src/cmd/kc/txt.c
+++ b/sys/src/cmd/kc/txt.c
@@ -1111,6 +1111,7 @@
 		print("%P\n", p);
 }
 
+int
 samaddr(Node *f, Node *t)
 {
 
--- a/sys/src/cmd/qc/txt.c
+++ b/sys/src/cmd/qc/txt.c
@@ -1559,6 +1559,7 @@
 	}
 }
 
+int
 samaddr(Node *f, Node *t)
 {