Skip to content

Commit c6edcf1

Browse files
committed
build: suppress libevent warnings if supressing external warnings
1 parent b2ec7d3 commit c6edcf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,10 @@ if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench
14861486
if test x$TARGET_OS != xwindows; then
14871487
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads >= 2.0.21],, [AC_MSG_ERROR([libevent_pthreads version 2.0.21 or greater not found.])])
14881488
fi
1489+
1490+
if test x$suppress_external_warnings != xno; then
1491+
EVENT_CFLAGS=SUPPRESS_WARNINGS($EVENT_CFLAGS)
1492+
fi
14891493
fi
14901494

14911495
dnl QR Code encoding library check

0 commit comments

Comments
 (0)