diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-03 15:48:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-03 15:48:26 +0200 |
| commit | a630fd8b418650f8df52aead511ec4d27ca48ad2 (patch) | |
| tree | 0202f7587a306bab366f7d3720ef9b831933e3e0 /prog/hints.go | |
| parent | 9fe5658a1b7320b756d02cf2075dc5c735f86ff4 (diff) | |
gometalinter: some fixes for unparam
But we still can't enable it as there are more [uninteresting] warnings.
Update #538
Diffstat (limited to 'prog/hints.go')
| -rw-r--r-- | prog/hints.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/hints.go b/prog/hints.go index b16d50dad..11c7b697b 100644 --- a/prog/hints.go +++ b/prog/hints.go @@ -75,11 +75,11 @@ func (p *Prog) MutateWithHints(callIndex int, comps CompMap, exec func(p *Prog)) exec(p) } ForeachArg(c, func(arg Arg, _ *ArgCtx) { - generateHints(p, comps, c, arg, execValidate) + generateHints(comps, arg, execValidate) }) } -func generateHints(p *Prog, compMap CompMap, c *Call, arg Arg, exec func()) { +func generateHints(compMap CompMap, arg Arg, exec func()) { typ := arg.Type() if typ == nil || typ.Dir() == DirOut { return |
