<div dir="ltr"><div>It can be solved adding:</div><div><br></div><div><table id="m_4209201528309310256gmail-diffTable"><tbody><tr><td><div><span>#<span>ifndef</span> BOOST_BIND_GLOBAL_PLACEHOLDERS</span></div></td></tr></tbody></table><table id="m_4209201528309310256gmail-diffTable"><tbody><tr><td><div><span>#<span>define</span> BOOST_BIND_GLOBAL_PLACEHOLDERS</span></div></td></tr></tbody></table><div><span>#<span>endif</span></span></div><div><span><span><br></span></span></div><div><span><span>Before the inclusion. However, taking a look to Jenkins there are many files affected.</span></span></div><div><span><span>So I would suggest to do it in a header /<a href="https://opengrok.libreoffice.org/xref/core/" target="_blank">core</a>/<a href="https://opengrok.libreoffice.org/xref/core/include/" target="_blank">include</a>/<a href="https://opengrok.libreoffice.org/xref/core/include/sal/" target="_blank">sal</a>/<a href="https://opengrok.libreoffice.org/xref/core/include/sal/types.h" target="_blank">types.h</a></span></span></div><div><span><span><br></span></span></div><div><span><span><br></span></span></div><div><span><span><br></span></span></div><div><span><span><br></span></span></div><div><span><span><br></span></span></div><div><span><span><br></span></span></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 8 ene 2021 a las 9:37, Stephan Bergmann (<<a href="mailto:sbergman@redhat.com" target="_blank">sbergman@redhat.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 07/01/2021 19:01, julien2412 wrote:<br>
> On pc Debian x86-64 with master sources updated today + make clean && make<br>
> (since Boost has been upgraded), I noticed these kinds of warnings:<br>
> [CXX] svx/source/fmcomp/fmgridif.cxx<br>
> In file included from<br>
> /home/julien/lo/libreoffice/svx/source/xoutdev/xattr.cxx:87:<br>
> In file included from<br>
> /home/julien/lo/libreoffice/external/boost/include/boost/property_tree/json_parser.hpp:30:<br>
> In file included from<br>
> /home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/property_tree/json_parser.hpp:16:<br>
> In file included from<br>
> /home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/property_tree/json_parser/detail/read.hpp:13:<br>
> In file included from<br>
> /home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/property_tree/json_parser/detail/parser.hpp:7:<br>
> In file included from<br>
> /home/julien/lo/libreoffice/external/boost/include/boost/bind.hpp:30:<br>
> /home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/bind.hpp:36:1:<br>
> warning: The practice of declaring the Bind placeholders (_1, _2, ...) in<br>
> the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using<br>
> namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to<br>
> retain the current behavior. [-W#pragma-messages]<br>
> BOOST_PRAGMA_MESSAGE(<br>
> ^<br>
> /home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/config/pragma_message.hpp:24:34:<br>
> note: expanded from macro 'BOOST_PRAGMA_MESSAGE'<br>
> # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))<br>
> ^<br>
> <scratch space>:36:2: note: expanded from here<br>
> message("The practice of declaring the Bind placeholders (_1, _2, ...) "<br>
> "in the global namespace is deprecated. Please use " "<boost/bind/bind.hpp><br>
> + using namespace boost::placeholders, " "or define<br>
> BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.")<br>
> ^<br>
[...]<br>
> It doesn't prevent LO from building but thought it could be interesting to<br>
> pinpoint.<br>
<br>
Yeah, that's a general issue since <br>
<<a href="https://git.libreoffice.org/core/+/e0f1b5bd94550835c639efda4e4c9a801c78dbe9%5E!/" rel="noreferrer" target="_blank">https://git.libreoffice.org/core/+/e0f1b5bd94550835c639efda4e4c9a801c78dbe9%5E!/</a>> <br>
"Upgrade external/boost to latest Boost 1.75.0". But as it doesn't <br>
affect --enable-werror, I didn't deem it worthwhile to silence the noise <br>
by ignoring -W#pragma-messages in bin/gen-boost-headers (and whatever <br>
would be necessary for MSVC). If we hate the noise enough, though, we <br>
could presumably patch external/boost's json_parser according to the <br>
pragma message ("use <boost/bind/bind.hpp> + using namespace <br>
boost::placeholders").<br>
<br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</blockquote></div>