abieos
abieos copied to clipboard
compiler warnings
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = std::nullptr_t; F = abieos_get_bin_hex(abieos_context*)::<lambda()>; decltype (f()) = const char*; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:86:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = std::nullptr_t; F = abieos_name_to_string(abieos_context*, uint64_t)::<lambda()>; decltype (f()) = const char*; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:98:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = bool; F = abieos_set_abi(abieos_context*, uint64_t, const char*)::<lambda()>; decltype (f()) = bool; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:122:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = bool; F = abieos_set_abi_bin(abieos_context*, uint64_t, const char*, size_t)::<lambda()>; decltype (f()) = bool; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:148:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = bool; F = abieos_set_abi_hex(abieos_context*, uint64_t, const char*)::<lambda()>; decltype (f()) = int; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:162:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = std::nullptr_t; F = abieos_get_type_for_action(abieos_context*, uint64_t, uint64_t)::<lambda()>; decltype (f()) = const char*; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:177:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = std::nullptr_t; F = abieos_get_type_for_table(abieos_context*, uint64_t, uint64_t)::<lambda()>; decltype (f()) = const char*; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:192:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = bool; F = abieos_json_to_bin(abieos_context*, uint64_t, const char*, const char*)::<lambda()>; decltype (f()) = bool; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:215:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = bool; F = abieos_json_to_bin_reorderable(abieos_context*, uint64_t, const char*, const char*)::<lambda()>; decltype (f()) = bool; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:244:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = std::nullptr_t; F = abieos_bin_to_json(abieos_context*, uint64_t, const char*, const char*, size_t)::<lambda()>; decltype (f()) = const char*; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:274:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp: In instantiation of ‘decltype (f()) handle_exceptions(abieos_context*, T, F) [with T = std::nullptr_t; F = abieos_hex_to_json(abieos_context*, uint64_t, const char*, const char*)::<lambda()>; decltype (f()) = const char*; abieos_context = abieos_context_s]’:
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:289:6: required from here
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:40:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
/home/eosio/build/eos-chronicle/external/abieos/src/abieos.cpp:45:13: warning: throw will always call terminate() [-Wterminate]
throw;
^~~~~
Is this when you build using the provided CMakeLists.txt?
I think I see what's happening. The compiler version you're using doesn't notice that code can't execute. I have those lines for debugging odd cases; I set catch_all to false and set breakpoints on those lines. I might just strip that out.
it's gcc 8.2.0, using my own cmake files
New warning after pulling abieos from github:
[ 82%] Building CXX object CMakeFiles/chronicle-receiver.dir/chronicle-receiver/receiver_plugin.cpp.o
In file included from /home/eosio/build/eos-chronicle/external/abieos/src/abieos.hpp:6,
from /home/eosio/build/eos-chronicle/chronicle-receiver/chain_state_types.hpp:6,
from /home/eosio/build/eos-chronicle/chronicle-receiver/receiver_plugin.hpp:2,
from /home/eosio/build/eos-chronicle/chronicle-receiver/receiver_plugin.cpp:3:
/home/eosio/build/eos-chronicle/external/abieos/external/date/include/date/date.h: In destructor ‘date::detail::save_ostream<CharT, Traits>::~save_ostream()’:
/home/eosio/build/eos-chronicle/external/abieos/external/date/include/date/date.h:1050:23: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
!std::uncaught_exception() &&
^~~~~~~~~~~~~~~~~~