#12 FastWriter is deprecated: Use StreamWriterBuilder instead

Fermé
Créé il y a 6 ans par themusicgod1 · 0 commentaires

/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 a référencé ce problème à partir d'un commit il y a 6 ans
Connectez-vous pour rejoindre cette conversation.
Aucun jalon
Pas d'assignataire
1 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.