Warnings about Boost (warning: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On pc Debian x86-64 with master sources updated today + make clean && make
(since Boost has been upgraded), I noticed these kinds of warnings:
[CXX] svx/source/fmcomp/fmgridif.cxx
In file included from
/home/julien/lo/libreoffice/svx/source/xoutdev/xattr.cxx:87:
In file included from
/home/julien/lo/libreoffice/external/boost/include/boost/property_tree/json_parser.hpp:30:
In file included from
/home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/property_tree/json_parser.hpp:16:
In file included from
/home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/property_tree/json_parser/detail/read.hpp:13:
In file included from
/home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/property_tree/json_parser/detail/parser.hpp:7:
In file included from
/home/julien/lo/libreoffice/external/boost/include/boost/bind.hpp:30:
/home/julien/lo/libreoffice/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 <boost/bind/bind.hpp> + using
namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to
retain the current behavior. [-W#pragma-messages]
BOOST_PRAGMA_MESSAGE(
^
/home/julien/lo/libreoffice/workdir/UnpackedTarball/boost/boost/config/pragma_message.hpp:24:34:
note: expanded from macro 'BOOST_PRAGMA_MESSAGE'
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
                                 ^
<scratch space>:36:2: note: expanded from here
 message("The practice of declaring the Bind placeholders (_1, _2, ...) "
"in the global namespace is deprecated. Please use " "<boost/bind/bind.hpp>
+ using namespace boost::placeholders, " "or define
BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.")
 ^

Here's my autogen.input:
CC=clang
CXX=clang++
--enable-compiler-plugins
--enable-dbgutil
--enable-evolution2
--enable-qt5
--enable-kf5
--enable-gtk3-kde5
# pour tester build rpm format
--enable-skia=debug
--enable-ext-nlpsolver
--enable-ext-ct2n
--enable-ext-numbertext
--enable-ext-wiki-publisher
--enable-dbus
--enable-online-update
--enable-werror
--enable-dependency-tracking
--enable-python=fully-internal
--without-system-mariadb
--enable-bundle-mariadb
--enable-symbols
--enable-avahi
--enable-eot
--enable-odk
--with-lang=en-US fr pt pt-BR it de
#--with-lang=ALL
--with-myspell-dicts
#--with-help

Debian clang version 11.0.0-5+b1
GNU ld (GNU Binutils for Debian) 2.35.1

It doesn't prevent LO from building but thought it could be interesting to
pinpoint.

Julien



--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux