#12 FastWriter is deprecated: Use StreamWriterBuilder instead

Закриті
6 роки тому відкрито themusicgod1 · 0 коментарів
Jeff Cliff відкоментовано 6 роки тому

/home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp: In member function ‘virtual bool dev::rpc::Test::test_setChainParams(const Json::Value&)’: /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:40:20: error: ‘FastWriter’ is deprecated: Use StreamWriterBuilder instead [-Werror=deprecated-declarations] Json::FastWriter fastWriter;

                ^~~~~~~~~~

In file included from /usr/include/json/json.h:12,

             from /usr/include/jsonrpccpp/common/jsonparser.h:13,
             from /usr/include/jsonrpccpp/common/procedure.h:16,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/ModularServer.h:30,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/TestFace.h:8,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.h:24,
             from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:23:

/usr/include/json/writer.h:168:70: note: declared here class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API FastWriter : public Writer {

                                                                  ^~~~~~~~~~

cc1plus: all warnings being treated as errors make[2]: *** [libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/build.make:258: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/Test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:735: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

/home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp: In member function ‘virtual bool dev::rpc::Test::test_setChainParams(const Json::Value&)’: /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:40:20: error: ‘FastWriter’ is deprecated: Use StreamWriterBuilder instead [-Werror=deprecated-declarations] Json::FastWriter fastWriter; ^~~~~~~~~~ In file included from /usr/include/json/json.h:12, from /usr/include/jsonrpccpp/common/jsonparser.h:13, from /usr/include/jsonrpccpp/common/procedure.h:16, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/ModularServer.h:30, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/TestFace.h:8, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.h:24, from /home/z/eth/c++/cpp-ethereum/libweb3jsonrpc/Test.cpp:23: /usr/include/json/writer.h:168:70: note: declared here class JSONCPP_DEPRECATED("Use StreamWriterBuilder instead") JSON_API FastWriter : public Writer { ^~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/build.make:258: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/Test.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:735: libweb3jsonrpc/CMakeFiles/web3jsonrpc.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
Jeff Cliff згадано цю проблему в коміті 6 роки тому
Підпишіться щоб приєднатися до обговорення.
Етап відсутній
Немає відповідального
1 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.