From ceef10c222f6ea8aec8f76526a76346daa01c3e5 Mon Sep 17 00:00:00 2001 From: Lucio De Re Date: Thu, 14 Apr 2011 11:54:36 -0700 Subject: [PATCH] pkg/runtime/plan9: Warning remediation, for Plan 9 native. . Missing declaration of runtime.brk_(); . Argument v in runtime.SysReserve() is not used; (I'd prefer a Plan 9-type solution...) R=golang-dev, r, r2 CC=golang-dev https://golang.org/cl/4368076 --- src/pkg/runtime/plan9/mem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/runtime/plan9/mem.c b/src/pkg/runtime/plan9/mem.c index b840de9846..9dfdf2cc35 100644 --- a/src/pkg/runtime/plan9/mem.c +++ b/src/pkg/runtime/plan9/mem.c @@ -4,6 +4,7 @@ #include "runtime.h" #include "malloc.h" +#include "os.h" extern byte end[]; static byte *bloc = { end }; @@ -52,5 +53,6 @@ runtime·SysMap(void *v, uintptr nbytes) void* runtime·SysReserve(void *v, uintptr nbytes) { + USED(v); return runtime·SysAlloc(nbytes); } -- 2.50.0