cgen: fix warnings (#5820)

This commit is contained in:
ka-weihe 2020-07-14 00:16:31 +02:00 committed by GitHub
parent 042add0e7f
commit df45488e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 59 additions and 55 deletions

View file

@ -94,7 +94,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
beforeaddr := sframe.all_before('[')
cmd := 'addr2line -e $executable $addr'
// taken from os, to avoid depending on the os module inside builtin.v
f := C.popen(cmd.str, 'r')
f := C.popen(charptr(cmd.str), 'r')
if isnil(f) {
eprintln(sframe)
continue