You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cgo shows expected ‘const char **’ but argument is of type ‘char **’
What steps will reproduce the problem?
1.go get -x github.com/mattn/go-sqlite3
What is the expected output?
remove such warning
What do you see instead?
gcc -I . -g -O2 -fPIC -m64 -pthread -I $WORK/github.com/mattn/go-sqlite3/_obj/ -o
$WORK/github.com/mattn/go-sqlite3/_obj/sqlite3.cgo2.o -c
$WORK/github.com/mattn/go-sqlite3/_obj/sqlite3.cgo2.c
# github.com/mattn/go-sqlite3
sqlite3.go: In function ‘_cgo_fe2086fd4234_Cfunc_sqlite3_prepare_v2’:
sqlite3.go:324 warning: passing argument 5 of ‘sqlite3_prepare_v2’ from incompatible
pointer type [enabled by default]
/usr/include/sqlite3.h:2924:16: note: expected ‘const char **’ but argument is of
type ‘char **’
Which compiler are you using (5g, 6g, 8g, gccgo)?
go
Which operating system are you using?
ArchLinux x86_64
Which revision are you using? (hg identify)
go-hg version 1c2e5d6d7660
sqlite3 3.7.10-1
gcc (GCC) 4.6.2 20120120 (prerelease)
Please provide any additional information below.
mattn/go-sqlite3#8
As comment said, it occurs between Go version 9e53309dfa6d and 1c2e5d6d7660.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: