From f83f92fd5e8f53114eb4e4149c19f2c4d7fddc78 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 20 Dec 2019 14:19:12 +0100 Subject: tools/syz-check: inject description compilation warnings Currently we print them as part of `make genereate`, but nobody reads them, too much output each time. Don't print them in `make generate` and instead print in syz-check, the warn files are a good mechanism to handle "known warnings". --- sys/syz-sysgen/sysgen.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/syz-sysgen') diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go index c5f2be3d3..254cbf561 100644 --- a/sys/syz-sysgen/sysgen.go +++ b/sys/syz-sysgen/sysgen.go @@ -111,6 +111,8 @@ func main() { job.ArchData = generateExecutorSyscalls(job.Target, prog.Syscalls, rev) + // Don't print warnings, they are printed in syz-check. + job.Errors = nil job.OK = true }() } @@ -131,7 +133,6 @@ func main() { for u := range job.Unsupported { unsupported[u]++ } - fmt.Printf("\n") } oses = append(oses, OSData{ GOOS: OS, -- cgit mrf-deployment