pganalyze / pg_query_go

Go library to parse and normalize SQL queries using the PostgreSQL query parser
BSD 3-Clause "New" or "Revised" License
663 stars 79 forks source link

go build on centos err #40

Closed finch039 closed 3 years ago

finch039 commented 3 years ago

github.com/pganalyze/pg_query_go/v2/parser

pg_query_fingerprint.c: In function ‘pg_query_fingerprint_with_opts’: pg_query_fingerprint.c:262:3: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration] int err = asprintf(&result.fingerprint_str, "%02x%02x%02x%02x%02x%02x%02x%02x",

➜ v2@v2.0.0 go version go version go1.13.9 linux/amd64

-> go env CGO_CFLAGS="-g -O2 -std=gnu99" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2"

finch039 commented 3 years ago

Warnning ignore