Skip to content

Commit

Permalink
Disable memcpy() overflow warnings in C compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-ns1 committed Oct 25, 2023
1 parent ae42c40 commit e806047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdb/lmdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ details about dealing with such situations.
package lmdb

/*
#cgo CFLAGS: -pthread -W -Wall -Wno-unused-parameter -Wno-format-extra-args -Wbad-function-cast -Wno-missing-field-initializers -O2 -g
#cgo CFLAGS: -pthread -W -Wall -Wno-unused-parameter -Wno-format-extra-args -Wbad-function-cast -Wno-missing-field-initializers -Wno-stringop-overflow -O2 -g
#cgo linux,pwritev CFLAGS: -DMDB_USE_PWRITEV
#include "lmdb.h"
Expand Down

0 comments on commit e806047

Please sign in to comment.