diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-08-19 01:52:46 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-19 01:53:59 +0200 |
| commit | 7067e78fd655232314eaa3d964004ed9600e02be (patch) | |
| tree | 76aa3d3fe1ae7fe5172b40335c5b6055f4dc8881 /pkg/csource/csource.go | |
| parent | 48613af61c42e8a3b4925d7fc7b8ca8350e96f9b (diff) | |
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.
Diffstat (limited to 'pkg/csource/csource.go')
| -rw-r--r-- | pkg/csource/csource.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
