Skip to content

Commit

Permalink
macOS: fix unknown warning -Wno-stringop-overflow
Browse files Browse the repository at this point in the history
Fix this warning by ignoring unknown warning flags:

    warning: unknown warning option '-Wno-stringop-overflow'; did you mean '-Wno-shift-overflow'? [-Wunknown-warning-option]
  • Loading branch information
wojas committed Jan 2, 2025
1 parent c2681f8 commit 2bfc8c3
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 -Wno-stringop-overflow -O2 -g
#cgo CFLAGS: -pthread -W -Wall -Wno-unused-parameter -Wno-format-extra-args -Wbad-function-cast -Wno-missing-field-initializers -Wno-stringop-overflow -Wno-unknown-warning-option -O2 -g
#cgo linux,pwritev CFLAGS: -DMDB_USE_PWRITEV
#include "lmdb.h"
Expand Down

0 comments on commit 2bfc8c3

Please sign in to comment.