Skip to content

Commit c14f3b3

Browse files
committed
bdb: disable Werror for format-security
This is causing build failures in some build environments, like NixOS. I don't think we are going to patch bdb at this point, and this warning has existed for as long as we've used bdb. Fixes #25211. Tested (in Docker) with: ```bash docker run -it nixos/nix nix-shell -p gitMinimal gcc12 libtool pkg-config curl gnumake patch autoconf automake git clone https://github.com/bitcoin/bitcoin make -C bitcoin/depends bdb ``` Co-authored-by: Ryan Ofsky <[email protected]> Github-Pull: #25763 Rebased-From: b46c6ec
1 parent ec7a883 commit c14f3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depends/packages/bdb.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $(package)_config_opts_freebsd=--with-pic
1414
$(package)_config_opts_netbsd=--with-pic
1515
$(package)_config_opts_openbsd=--with-pic
1616
$(package)_config_opts_android=--with-pic
17-
$(package)_cflags+=-Wno-error=implicit-function-declaration
17+
$(package)_cflags+=-Wno-error=implicit-function-declaration -Wno-error=format-security
1818
$(package)_cxxflags+=-std=c++17
1919
$(package)_cppflags_mingw32=-DUNICODE -D_UNICODE
2020
endef

0 commit comments

Comments
 (0)