mattn/go-sqlite3 — Issue #8: compile warning expected expected ‘const char **’ but argument is of type ‘char **’
Author: dlintw
Created: 2012-02-28 14:32:40+00:00
State: open

go-hg version 1c2e5d6d7660
sqlite3 3.7.10-1
gcc (GCC) 4.6.2 20120120 (prerelease)

go get -x github.com/mattn/go-sqlite3
...
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:2: 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 **’