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/instance/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/instance') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index ac553c2b9..7df34d191 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -342,7 +342,7 @@ func (inst *inst) testRepro() error { if err != nil { return err } - bin, err := csource.Build(target, inst.reproC) + bin, err := csource.BuildNoWarn(target, inst.reproC) if err != nil { return err } -- cgit mrf-deployment