From 8044f79f757bf230a06b42302fb610f810221069 Mon Sep 17 00:00:00 2001 From: richardcohen <123320031+richardcohen@users.noreply.github.com> Date: Sun, 22 Jan 2023 17:50:34 +0000 Subject: [PATCH] Silence the boost (<1.76) warning message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from .../gnucash-4.8/libgnucash/app-utils/gnc-quotes.cpp:33: /usr/include/boost/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.’ The issue was fixed in boost 1.76, but, e.g ubuntu 22.04 has boost 1.74 --- libgnucash/app-utils/gnc-quotes.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp index 366c9fe9a7..0f71f20ad2 100644 --- a/libgnucash/app-utils/gnc-quotes.cpp +++ b/libgnucash/app-utils/gnc-quotes.cpp @@ -27,6 +27,11 @@ #include #include #include +#include +#if BOOST_VERSION < 107600 +// json_parser uses a deprecated version of bind.hpp +#define BOOST_BIND_GLOBAL_PLACEHOLDERS +#endif #include #include #include