]> Cypherpunks repositories - gostls13.git/commitdiff
pkg/runtime/plan9: Warning remediation, for Plan 9 native.
authorLucio De Re <lucio.dere@gmail.com>
Thu, 14 Apr 2011 18:54:36 +0000 (11:54 -0700)
committerRob Pike <r@golang.org>
Thu, 14 Apr 2011 18:54:36 +0000 (11:54 -0700)
. 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

index b840de984607e3915d6c4d601d6c87b7d97d308f..9dfdf2cc35867adbffc9920c13e9d30d50a1fb02 100644 (file)
@@ -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);
 }