From 7067e78fd655232314eaa3d964004ed9600e02be Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 19 Aug 2018 01:52:46 +0200 Subject: executor: fix gcc warnings in fuchsia generated code gcc complains about function declarations not being prototypes, signed/unsigned cast mismatch and casts between incompatible functions. Fix them. --- 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 46d1711f7..69be3ff2a 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -218,7 +218,7 @@ func (ctx *context) emitCall(w *bytes.Buffer, call prog.ExecCall, ci int, haveCo if args != "" { args = args[1:] } - fmt.Fprintf(w, "((long(*)(%v))%v)(", args, callName) + fmt.Fprintf(w, "((long(*)(%v))CAST(%v))(", args, callName) } for ai, arg := range call.Args { if native || ai > 0 { -- cgit mrf-deployment