Skip to content

Commit 9328d04

Browse files
committed
cgosqlite: quiet bogus gcc warning
(This is a cherry-pick of 23ab76b to reapply the change which got reverted in 0263f7d.) This is a relatively recent issue, so should likely be fixed upstream in either sqlite or gcc. But in the meantime, quiet this warning. Updates #cleanup Signed-off-by: Will Norris <[email protected]>
1 parent 0263f7d commit 9328d04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cgosqlite/cgosqlite.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ package cgosqlite
3939
// // Apple's build of Clang that does not know certain GCC warnings.
4040
// #cgo CFLAGS: -Wno-unknown-warning-option
4141
//
42+
// // Quiet bogus warnings (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115274)
43+
// #cgo CFLAGS: -Wno-stringop-overread
44+
//
4245
// // libm is required by the FTS5 extension, on Linux.
4346
// #cgo linux LDFLAGS: -lm
4447
//

0 commit comments

Comments
 (0)