-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WARNING] sqlite3-binding.c: In function ‘sqlite3SelectNew’ #822
Comments
Anyone know of an alternative way to fix the warning messages that doesn't require env vars? Using these cgo flags mentioned in #803 does work to silence the warnings but it's not ideal: CGO_CFLAGS="-g -O2 -Wno-return-local-addr" go run main.go |
@miguelmota That depends what you consider to be a fix. As mentioned in the linked issue, this warning is a false positive that could be addressed by changing how SQLite itself is implemented, but it is unclear whether such a change will be made. Alternatively, that flag could be added to this wrapper library so you don't need to manually set an environment variable. Lines 12 to 24 in aa77c03
|
@rittneje that worked perfectly, thanks! |
This change bumps go-sqlite3 version in go.mod. Note that go-sqlite3 is actually at v1 version, the v2 is an accident as written in README. >Latest stable version is v1.14 or later, not v2. > >NOTE: The increase to v2 was an accident. There were no major changes or >features. This change fixes mattn/go-sqlite3#822 As a side effect, we also upgrade gin-contrib/sessions to the latest commit for gin-contrib/sessions#187 There were no major changes since v0.0.5 release aside from minor dependency version bumps. gin-contrib/sessions@v0.0.5...189b96f
This change bumps go-sqlite3 version in go.mod. Note that go-sqlite3 is actually at v1 version, the v2 is an accident as written in README. >Latest stable version is v1.14 or later, not v2. > >NOTE: The increase to v2 was an accident. There were no major changes or >features. This change fixes mattn/go-sqlite3#822 As a side effect, we also upgrade gin-contrib/sessions to the latest commit for gin-contrib/sessions#187 There were no major changes since v0.0.5 release aside from minor dependency version bumps. gin-contrib/sessions@v0.0.5...189b96f
Our dependency go-sqlite3 has a false positive warning being triggered as it compiles. This is showing up in the tests and build and pollutes output quite a bit. Add a flag to supress the warning. Track the issue here: mattn/go-sqlite3#822
Our dependency go-sqlite3 has a false positive warning being triggered as it compiles. This is showing up in the tests and build and pollutes output quite a bit. Add a flag to supress the warning. Without this the following warning may continually pop up when tests are running ``` 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; | ^~~~~~~ ``` Track the issue here: mattn/go-sqlite3#822
Hi, while I'm developing an appliation using gorm I noticed new messages shown in my terminal and said there is an issues in this package:
I hope this message helps you out to fix the issue. Thanks
The text was updated successfully, but these errors were encountered: