aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/repro
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-03-21 13:22:07 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-03-21 13:30:12 +0100
commite6d1a816d8ee66336ab745bd1e99c8d231bcf10c (patch)
tree80304acbde704e680eaa5556073c4177ad753fad /pkg/repro
parent44270612b458144e4c3e881bac376d32bb395ee8 (diff)
pkg/csource: allow to ignore warnings during build
Running bisection using an older repro failed with: <stdin>: In function ‘syz_mount_image.constprop’: <stdin>:298:3: error: argument 1 null where non-null expected [-Werror=nonnull] In file included from <stdin>: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
Diffstat (limited to 'pkg/repro')
-rw-r--r--pkg/repro/repro.go2
1 files changed, 1 insertions, 1 deletions
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
}