I'm compiling an empty module with -Wall with the latest pybind11 (82ece94, Linux / GCC 5.2 / both C++11 and C++14) and I get a ton of deprecated declarations warnings:
In file included from ../include/pybind11/cast.h:13:0,
from ../include/pybind11/attr.h:13,
from ../include/pybind11/pybind11.h:36,
from test_module.cpp:10:
../include/pybind11/pytypes.h:190:7: warning: ‘pybind11::object::borrowed’ is deprecated: Use of the `borrowed` static variable is deprecated; use `borrowed_t{}' instead [-Wdeprecated-declarations] class object : public handle { ^../include/pybind11/pytypes.h:241:33: note: declared here static constexpr borrowed_t borrowed{}; ^../include/pybind11/pytypes.h:190:7: warning: ‘pybind11::object::stolen’ is deprecated: Use of the `stolen` static variable is deprecated; use `stolen_t{}' instead [-Wdeprecated-declarations]
classobject : publichandle {
^
../include/pybind11/pytypes.h:243:31: note: declared here
staticconstexprstolen_t stolen{};
^
../include/pybind11/pytypes.h:190:7: warning: ‘pybind11::object::borrowed’ is deprecated: Use of the `borrowed` static variable is deprecated; use `borrowed_t{}' instead [-Wdeprecated-declarations] class object : public handle { ^../include/pybind11/pytypes.h:241:33: note: declared here static constexpr borrowed_t borrowed{}; ^../include/pybind11/pytypes.h:190:7: warning: ‘pybind11::object::stolen’ is deprecated: Use of the `stolen` static variable is deprecated; use `stolen_t{}' instead [-Wdeprecated-declarations]
classobject : publichandle {
^
../include/pybind11/pytypes.h:243:31: note: declared here
staticconstexprstolen_t stolen{};Source:
#include<pybind11/pybind11.h>PYBIND11_PLUGIN(test_warnings) { returnpybind11::module("test_warnings").ptr(); }
I'm compiling an empty module with
-Wallwith the latest pybind11 (82ece94, Linux / GCC 5.2 / both C++11 and C++14) and I get a ton of deprecated declarations warnings:Source: