From: Lucio De Re Date: Thu, 14 Apr 2011 18:54:36 +0000 (-0700) Subject: pkg/runtime/plan9: Warning remediation, for Plan 9 native. X-Git-Tag: weekly.2011-04-27~159 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ceef10c222f6ea8aec8f76526a76346daa01c3e5;p=gostls13.git 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 --- 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); }