Skip to content

Commit 869ff81

Browse files
committed
Suppress false positive -Wstringop-overread warning in GCC 14/15
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115274
1 parent e049d29 commit 869ff81

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

c/dummy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ package c
2626
#cgo CFLAGS: -DSQLITE_DQS=0
2727
#cgo CFLAGS: -DSQLITE_ENABLE_GEOPOLY
2828
#cgo CFLAGS: -DSQLITE_DIRECT_OVERFLOW_READ
29+
// False positive in GCC 14/15 at -O3: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115274
30+
#cgo CFLAGS: -Wno-stringop-overread
2931
#cgo windows LDFLAGS: -lwinpthread
3032
#cgo linux LDFLAGS: -ldl -lm
3133
#cgo linux CFLAGS: -std=c99

0 commit comments

Comments
 (0)