Closed
Description
Every time my application starts or tests are run I get the following in my output:
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 | return pNew;
| ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 | Select standin;
| ^~~~~~~
I can get round this by adding -w
to the CFLAGS option inside sqlite3.go
Is there a better way to get rid of this warning and note?
I am running on Fedora 32 x86_64
Metadata
Metadata
Assignees
Labels
No labels