Skip to content

Commit

Permalink
Merge pull request #19 from shane-ns1/disable-warnings-for-memcpy
Browse files Browse the repository at this point in the history
Disable memcpy() overflow warnings in C compilation
  • Loading branch information
wojas authored Oct 31, 2023
2 parents ae42c40 + e806047 commit f6c75fe
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 f6c75fe

Please sign in to comment.