From 8fbce0e4423f701145e111531f6f41cc02e086cf Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 30 Mar 2018 20:04:20 +0200 Subject: executor: fix compilation warnings SYS_memfd_create define produces warning in scource if system headers already contain the definition (we strip all ifdefs!). The same is true for CLONE_NEWCGROUP but we just never hit it yet. Also fix format string for 32 bits. Also fix potential uninit var in csource, and a missing new line. --- pkg/csource/csource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/csource/csource.go') diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index 7031849b4..05bead91d 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -217,7 +217,7 @@ func (ctx *context) generateTestFunc(calls []string, hasVars bool, name string) if !opts.Threaded && !opts.Collide { ctx.printf("void %v()\n{\n", name) if hasVars { - ctx.printf("\tlong res;") + ctx.printf("\tlong res = 0;\n") } if opts.Debug { // Use debug to avoid: error: ‘debug’ defined but not used. -- cgit mrf-deployment