From 046d7d01f5b505a26c4c0e3bc28eba3769e20fbd Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 26 Jan 2021 00:36:47 +0100 Subject: [PATCH] Fix boost 1.74 + gcc 10.2 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior. --- wscript | 1 + 1 file changed, 1 insertion(+) diff --git a/wscript b/wscript index a59e89c16b..3ba49d7ec1 100644 --- a/wscript +++ b/wscript @@ -526,6 +526,7 @@ int main() { return 0; }''', conf.define("_DARWIN_C_SOURCE", 1) else: cxx_flags.append('-DBOOST_NO_AUTO_PTR') + cxx_flags.append('-DBOOST_BIND_GLOBAL_PLACEHOLDERS') if (is_clang and platform == "darwin") or conf.env['build_host'] in [ 'mavericks', 'yosemite', 'el_capitan', 'sierra', 'high_sierra', 'mojave', 'catalina' , 'bigsur' ]: