From 0c4b1960d01985c2d8d6da62e8c82395b70838c8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 29 Jun 2018 18:18:50 +0200 Subject: pkg/ipc: suppress gometalinter warnings --- pkg/ipc/ipc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index 2f7f4e928..5ab5e26a7 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -529,6 +529,8 @@ type executeReply struct { } // TODO(dvyukov): we currently parse this manually, should cast output to this struct instead. +// gometalinter complains about unused fields +// nolint type callReply struct { callIndex uint32 callNum uint32 @@ -540,7 +542,8 @@ type callReply struct { // signal/cover/comps follow } -func makeCommand(pid int, bin []string, config *Config, inFile *os.File, outFile *os.File, outmem []byte) (*command, error) { +func makeCommand(pid int, bin []string, config *Config, inFile *os.File, outFile *os.File, + outmem []byte) (*command, error) { dir, err := ioutil.TempDir("./", "syzkaller-testdir") if err != nil { return nil, fmt.Errorf("failed to create temp dir: %v", err) -- cgit mrf-deployment