Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Some warnings #268

Open
thibault-martinez opened this issue Oct 1, 2019 · 0 comments
Open

Some warnings #268

thibault-martinez opened this issue Oct 1, 2019 · 0 comments

Comments

@thibault-martinez
Copy link
Member

Not all are relevant since some are related to third parties.

INFO: From Compiling external/mariadb_connector/libmariadb/ma_client_plugin.c:
bazel-out/k8-opt/bin/external/mariadb_connector/libmariadb/ma_client_plugin.c: In function 'mysql_load_plugin_v':
bazel-out/k8-opt/bin/external/mariadb_connector/libmariadb/ma_client_plugin.c:311:42: warning: missing terminating ' character
    while (len > 0 && (winmsg[len - 1] == '
                                          ^
bazel-out/k8-opt/bin/external/mariadb_connector/libmariadb/ma_client_plugin.c:313:1: warning: missing terminating ' character
      len--;
 ^
INFO: From Compiling external/com_github_google_glog/src/logging.cc:
external/com_github_google_glog/src/logging.cc: In static member function 'static void google::LogMessage::Fail()':
external/com_github_google_glog/src/logging.cc:1521:1: warning: 'noreturn' function does return
 }
 ^
INFO: From Compiling external/boost/libs/serialization/src/binary_iarchive.cpp:
In file included from external/boost/boost/detail/endian.hpp:9,
                 from external/boost/boost/archive/impl/basic_binary_iarchive.ipp:25,
                 from external/boost/libs/serialization/src/binary_iarchive.cpp:20:
external/boost/boost/predef/detail/endian_compat.h:11:161: note: #pragma message: The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead
 #pragma message("The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead")
                                                                                                                                                                 ^
INFO: From Compiling external/keccak/lib/low/KeccakP-1600/Reference/KeccakP-1600-reference.c:
external/keccak/lib/low/KeccakP-1600/Reference/KeccakP-1600-reference.c:269:13: warning: 'fromWordsToBytes' defined but not used [-Wunused-function]
 static void fromWordsToBytes(unsigned char *state, const tKeccakLane *stateAsWords)
             ^~~~~~~~~~~~~~~~
external/keccak/lib/low/KeccakP-1600/Reference/KeccakP-1600-reference.c:258:13: warning: 'fromBytesToWords' defined but not used [-Wunused-function]
 static void fromBytesToWords(tKeccakLane *stateAsWords, const unsigned char *state)
             ^~~~~~~~~~~~~~~~
INFO: From Compiling external/boost/libs/serialization/src/binary_wiarchive.cpp:
In file included from external/boost/boost/detail/endian.hpp:9,
                 from external/boost/boost/archive/impl/basic_binary_iarchive.ipp:25,
                 from external/boost/libs/serialization/src/binary_wiarchive.cpp:24:
external/boost/boost/predef/detail/endian_compat.h:11:161: note: #pragma message: The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead
 #pragma message("The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead")
                                                                                                                                                                 ^
INFO: From Compiling hub/commands/recover_funds.cc:
hub/commands/recover_funds.cc: In member function 'virtual common::cmd::Error hub::cmd::RecoverFunds::doProcess(const RecoverFundsRequest*, hub::cmd::RecoverFundsReply*)':
hub/commands/recover_funds.cc:158:44: warning: narrowing conversion of 'maybeAddressInfo.std::optional<hub::db::AddressInfo>::value().hub::db::AddressInfo::id' from 'uint64_t' {aka 'long unsigned int'} to 'int64_t' {aka 'long int'} inside { } [-Wnarrowing]
       addressId : maybeAddressInfo.value().id,
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~
INFO: From Compiling hub/server/http_json_server.cc:
hub/server/http_json_server.cc: In member function 'virtual common::HttpServerBase::ErrorCode hub::HubHttpJsonServer::handleRequestImpl(std::string_view, std::__cxx11::string&)':
hub/server/http_json_server.cc:59:11: warning: catching polymorphic type 'struct boost::wrapexcept<boost::property_tree::json_parser::json_parser_error>' by value [-Wcatch-value=]
           ex) {
           ^~
INFO: From Compiling hub/db/helper.cc:
hub/db/helper.cc: In instantiation of 'static std::vector<hub::db::TransferInput> hub::db::helper<C>::getDepositsForSweep(C&, size_t, const time_point&) [with C = sqlpp::mysql::connection; size_t = long unsigned int; std::chrono::_V2::system_clock::time_point = std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >]':
hub/db/helper.cc:967:17:   required from here
hub/db/helper.cc:747:19: warning: narrowing conversion of '(& row)->sqlpp::result_row_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::mysql::connection, sqlpp::detail::field_index_sequence<5, 0, 1, 2, 3, 4>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::mysql::connection, 2, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.hub::db::sql::UserAddress_::UserId::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> > >::userId.sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     TransferInput ti = {
                   ^~
hub/db/helper.cc: In instantiation of 'static std::optional<hub::db::AddressInfo> hub::db::helper<C>::getAddressInfo(C&, const Address&) [with C = sqlpp::mysql::connection; common::crypto::Address = common::crypto::TryteArray<81, common::crypto::AddressTag>]':
hub/db/helper.cc:967:17:   required from here
hub/db/helper.cc:870:6: warning: narrowing conversion of '(& front)->sqlpp::result_row_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::mysql::connection, sqlpp::detail::field_index_sequence<4, 0, 1, 2, 3>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::mysql::connection, 0, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.hub::db::sql::UserAddress_::Id::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> > >::id.sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     }};
      ^
hub/db/helper.cc: In instantiation of 'static std::vector<hub::db::TransferInput> hub::db::helper<C>::getDepositsForSweep(C&, size_t, const time_point&) [with C = sqlpp::sqlite3::connection; size_t = long unsigned int; std::chrono::_V2::system_clock::time_point = std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >]':
hub/db/helper.cc:968:17:   required from here
hub/db/helper.cc:747:19: warning: narrowing conversion of '(& row)->sqlpp::result_row_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::sqlite3::connection, sqlpp::detail::field_index_sequence<5, 0, 1, 2, 3, 4>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::sqlite3::connection, 2, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.hub::db::sql::UserAddress_::UserId::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> > >::userId.sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     TransferInput ti = {
                   ^~
hub/db/helper.cc: In instantiation of 'static std::optional<hub::db::AddressInfo> hub::db::helper<C>::getAddressInfo(C&, const Address&) [with C = sqlpp::sqlite3::connection; common::crypto::Address = common::crypto::TryteArray<81, common::crypto::AddressTag>]':
hub/db/helper.cc:968:17:   required from here
hub/db/helper.cc:870:6: warning: narrowing conversion of '(& front)->sqlpp::result_row_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::sqlite3::connection, sqlpp::detail::field_index_sequence<4, 0, 1, 2, 3>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::sqlite3::connection, 0, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.hub::db::sql::UserAddress_::Id::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> > >::id.sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     }};
      ^
hub/db/helper.cc: In static member function 'static std::vector<hub::db::SweepEvent> hub::db::helper<C>::getSweeps(C&, std::chrono::_V2::system_clock::time_point) [with C = sqlpp::mysql::connection]':
hub/db/helper.cc:528:13: warning: 'currEvent' may be used uninitialized in this function [-Wmaybe-uninitialized]
       auto& uuids = currEvent->withdrawalUUIDs;
             ^~~~~
hub/db/helper.cc: In static member function 'static std::vector<hub::db::SweepEvent> hub::db::helper<C>::getSweeps(C&, std::chrono::_V2::system_clock::time_point) [with C = sqlpp::sqlite3::connection]':
hub/db/helper.cc:528:13: warning: 'currEvent' may be used uninitialized in this function [-Wmaybe-uninitialized]
       auto& uuids = currEvent->withdrawalUUIDs;
             ^~~~~
INFO: From Compiling external/com_github_google_glog/src/logging.cc:
external/com_github_google_glog/src/logging.cc: In static member function 'static void google::LogMessage::Fail()':
external/com_github_google_glog/src/logging.cc:1521:1: warning: 'noreturn' function does return
 }
 ^
INFO: From Compiling external/boost/libs/serialization/src/binary_iarchive.cpp:
In file included from external/boost/boost/detail/endian.hpp:9,
                 from external/boost/boost/archive/impl/basic_binary_iarchive.ipp:25,
                 from external/boost/libs/serialization/src/binary_iarchive.cpp:20:
external/boost/boost/predef/detail/endian_compat.h:11:161: note: #pragma message: The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead
 #pragma message("The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead")
                                                                                                                                                                 ^
INFO: From Compiling external/boost/libs/serialization/src/binary_wiarchive.cpp:
In file included from external/boost/boost/detail/endian.hpp:9,
                 from external/boost/boost/archive/impl/basic_binary_iarchive.ipp:25,
                 from external/boost/libs/serialization/src/binary_wiarchive.cpp:24:
external/boost/boost/predef/detail/endian_compat.h:11:161: note: #pragma message: The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead
 #pragma message("The use of BOOST_*_ENDIAN and BOOST_BYTE_ORDER is deprecated. Please include <boost/predef/other/endian.h> and use BOOST_ENDIAN_*_BYTE instead")
                                                                                                                                                                 ^
INFO: From Compiling external/keccak/lib/low/KeccakP-1600/Reference/KeccakP-1600-reference.c:
external/keccak/lib/low/KeccakP-1600/Reference/KeccakP-1600-reference.c:269:13: warning: 'fromWordsToBytes' defined but not used [-Wunused-function]
 static void fromWordsToBytes(unsigned char *state, const tKeccakLane *stateAsWords)
             ^~~~~~~~~~~~~~~~
external/keccak/lib/low/KeccakP-1600/Reference/KeccakP-1600-reference.c:258:13: warning: 'fromBytesToWords' defined but not used [-Wunused-function]
 static void fromBytesToWords(tKeccakLane *stateAsWords, const unsigned char *state)
             ^~~~~~~~~~~~~~~~
INFO: From Compiling hub/commands/recover_funds.cc:
hub/commands/recover_funds.cc: In member function 'virtual common::cmd::Error hub::cmd::RecoverFunds::doProcess(const RecoverFundsRequest*, hub::cmd::RecoverFundsReply*)':
hub/commands/recover_funds.cc:158:44: warning: narrowing conversion of 'maybeAddressInfo.std::optional<hub::db::AddressInfo>::value().hub::db::AddressInfo::id' from 'uint64_t' {aka 'long unsigned int'} to 'int64_t' {aka 'long int'} inside { } [-Wnarrowing]
       addressId : maybeAddressInfo.value().id,
                   ~~~~~~~~~~~~~~~~~~~~~~~~~^~
INFO: From Compiling external/mariadb_connector/libmariadb/ma_client_plugin.c:
bazel-out/k8-opt/bin/external/mariadb_connector/libmariadb/ma_client_plugin.c: In function 'mysql_load_plugin_v':
bazel-out/k8-opt/bin/external/mariadb_connector/libmariadb/ma_client_plugin.c:311:42: warning: missing terminating ' character
    while (len > 0 && (winmsg[len - 1] == '
                                          ^
bazel-out/k8-opt/bin/external/mariadb_connector/libmariadb/ma_client_plugin.c:313:1: warning: missing terminating ' character
      len--;
 ^
INFO: From Compiling hub/db/helper.cc:
hub/db/helper.cc: In instantiation of 'static std::vector<hub::db::TransferInput> hub::db::helper<C>::getDepositsForSweep(C&, size_t, const time_point&) [with C = sqlpp::mysql::connection; size_t = long unsigned int; std::chrono::_V2::system_clock::time_point = std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >]':
hub/db/helper.cc:967:17:   required from here
hub/db/helper.cc:747:19: warning: narrowing conversion of '(& row)->sqlpp::result_row_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::mysql::connection, sqlpp::detail::field_index_sequence<5, 0, 1, 2, 3, 4>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::mysql::connection, 2, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.hub::db::sql::UserAddress_::UserId::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> > >::userId.sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     TransferInput ti = {
                   ^~
hub/db/helper.cc: In instantiation of 'static std::optional<hub::db::AddressInfo> hub::db::helper<C>::getAddressInfo(C&, const Address&) [with C = sqlpp::mysql::connection; common::crypto::Address = common::crypto::TryteArray<81, common::crypto::AddressTag>]':
hub/db/helper.cc:967:17:   required from here
hub/db/helper.cc:870:6: warning: narrowing conversion of '(& front)->sqlpp::result_row_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::mysql::connection, sqlpp::detail::field_index_sequence<4, 0, 1, 2, 3>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::mysql::connection, 0, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.hub::db::sql::UserAddress_::Id::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> > >::id.sqlpp::result_field_t<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::mysql::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     }};
      ^
hub/db/helper.cc: In instantiation of 'static std::vector<hub::db::TransferInput> hub::db::helper<C>::getDepositsForSweep(C&, size_t, const time_point&) [with C = sqlpp::sqlite3::connection; size_t = long unsigned int; std::chrono::_V2::system_clock::time_point = std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >]':
hub/db/helper.cc:968:17:   required from here
hub/db/helper.cc:747:19: warning: narrowing conversion of '(& row)->sqlpp::result_row_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::sqlite3::connection, sqlpp::detail::field_index_sequence<5, 0, 1, 2, 3, 4>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Address::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Balance::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::sqlite3::connection, 2, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.hub::db::sql::UserAddress_::UserId::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> > >::userId.sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::UserId::_alias_t, sqlpp::integral, false, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     TransferInput ti = {
                   ^~
hub/db/helper.cc: In instantiation of 'static std::optional<hub::db::AddressInfo> hub::db::helper<C>::getAddressInfo(C&, const Address&) [with C = sqlpp::sqlite3::connection; common::crypto::Address = common::crypto::TryteArray<81, common::crypto::AddressTag>]':
hub/db/helper.cc:968:17:   required from here
hub/db/helper.cc:870:6: warning: narrowing conversion of '(& front)->sqlpp::result_row_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_row_impl<sqlpp::sqlite3::connection, sqlpp::detail::field_index_sequence<4, 0, 1, 2, 3>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, sqlpp::field_spec_t<hub::db::sql::UserAccount_::Identifier::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<hub::db::sql::UserAddress_::SeedUuid::_alias_t, sqlpp::text, false, false>, sqlpp::field_spec_t<sqlpp::exists_alias_t::_alias_t, sqlpp::boolean, true, false> >::<anonymous>.sqlpp::detail::result_field<sqlpp::sqlite3::connection, 0, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.hub::db::sql::UserAddress_::Id::_alias_t::_member_t<sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> > >::id.sqlpp::result_field_t<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false> >::<anonymous>.sqlpp::result_field_base<sqlpp::sqlite3::connection, sqlpp::field_spec_t<hub::db::sql::UserAddress_::Id::_alias_t, sqlpp::integral, true, false>, long int>::operator std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type()' from 'std::conditional<true, long int, sqlpp::assert_result_field_value_is_safe_t>::type' {aka 'long int'} to 'uint64_t' {aka 'long unsigned int'} inside { } [-Wnarrowing]
     }};
      ^
hub/db/helper.cc: In static member function 'static std::vector<hub::db::SweepEvent> hub::db::helper<C>::getSweeps(C&, std::chrono::_V2::system_clock::time_point) [with C = sqlpp::mysql::connection]':
hub/db/helper.cc:528:13: warning: 'currEvent' may be used uninitialized in this function [-Wmaybe-uninitialized]
       auto& uuids = currEvent->withdrawalUUIDs;
             ^~~~~
hub/db/helper.cc: In static member function 'static std::vector<hub::db::SweepEvent> hub::db::helper<C>::getSweeps(C&, std::chrono::_V2::system_clock::time_point) [with C = sqlpp::sqlite3::connection]':
hub/db/helper.cc:528:13: warning: 'currEvent' may be used uninitialized in this function [-Wmaybe-uninitialized]
       auto& uuids = currEvent->withdrawalUUIDs;
             ^~~~~
INFO: From Compiling hub/server/http_json_server.cc:
hub/server/http_json_server.cc: In member function 'virtual common::HttpServerBase::ErrorCode hub::HubHttpJsonServer::handleRequestImpl(std::string_view, std::__cxx11::string&)':
hub/server/http_json_server.cc:59:11: warning: catching polymorphic type 'struct boost::wrapexcept<boost::property_tree::json_parser::json_parser_error>' by value [-Wcatch-value=]
           ex) {
           ^~
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant