From e6d1a816d8ee66336ab745bd1e99c8d231bcf10c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 21 Mar 2019 13:22:07 +0100 Subject: pkg/csource: allow to ignore warnings during build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Running bisection using an older repro failed with: : In function ‘syz_mount_image.constprop’: :298:3: error: argument 1 null where non-null expected [-Werror=nonnull] In file included from :26:0: /usr/include/x86_64-linux-gnu/sys/stat.h:320:12: note: in a call to function ‘mkdir’ declared here extern int mkdir (const char *__path, __mode_t __mode) Let's be safe and ignore warnings during repro/bisect. Everything that runs during tests still has all warnings. Update #501 --- pkg/repro/repro.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/repro') diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go index 2c6a0e6ed..7aafdde31 100644 --- a/pkg/repro/repro.go +++ b/pkg/repro/repro.go @@ -556,7 +556,7 @@ func (ctx *context) testCProg(p *prog.Prog, duration time.Duration, opts csource if err != nil { return false, err } - bin, err := csource.Build(p.Target, src) + bin, err := csource.BuildNoWarn(p.Target, src) if err != nil { return false, err } -- cgit mrf-deployment