Skip to content

Commit

Permalink
Suppress compilation warnings for K&R-style prototypes when building bdb
Browse files Browse the repository at this point in the history
by adding `-Wno-deprecated-non-prototype` to `CFLAGS`.

Signed-off-by: Daira Emma Hopwood <daira@jacaranda.org>
  • Loading branch information
daira committed Nov 14, 2023
1 parent 883fa68 commit 1c29282
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions depends/packages/bdb.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $(package)_config_opts_darwin=--disable-atomicsupport
endif
$(package)_config_opts_aarch64=--disable-atomicsupport
$(package)_cxxflags+=-std=c++17
$(package)_cflags+=-Wno-deprecated-non-prototype

ifeq ($(host_os),freebsd)
$(package)_ldflags+=-static-libstdc++ -lcxxrt
Expand Down

0 comments on commit 1c29282

Please sign in to comment.