From 58a61c0b85d8e1f08922a3ccedfa6101f4bf587a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 13 Jan 2021 14:32:24 +0100 Subject: Silence Boost bind deprecation warning > In file included from sdext/source/pdfimport/pdfparse/pdfparse.cxx:35: > In file included from external/boost/include/boost/bind.hpp:30: > workdir/UnpackedTarball/boost/boost/bind.hpp:36:1: warning: 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. [-W#pragma-messages] > BOOST_PRAGMA_MESSAGE( > ^ since e0f1b5bd94550835c639efda4e4c9a801c78dbe9 "Upgrade external/boost to latest Boost 1.75.0". boost/bind/bind.hpp and boost::placeholders appear to date back to before our Boost 1.66 baseline. Change-Id: I766be46fca02693fe0114c7c5855e6d94f7860a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109228 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sdext/source/pdfimport/pdfparse/pdfparse.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx index e61d900885ea..ef0bfaea65f4 100644 --- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include @@ -143,6 +143,8 @@ public: { explicit definition( const PDFGrammar& rSelf ) { + using namespace boost::placeholders; + PDFGrammar* pSelf = const_cast< PDFGrammar* >( &rSelf ); // workaround workshop compiler: comment_p doesn't work -- cgit