Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler warnings #16

Open
cc32d9 opened this issue Mar 19, 2019 · 4 comments
Open

compiler warnings #16

cc32d9 opened this issue Mar 19, 2019 · 4 comments

Comments

@cc32d9
Copy link
Contributor

cc32d9 commented Mar 19, 2019

/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;
             ^~~~~
@tbfleming
Copy link
Contributor

Is this when you build using the provided CMakeLists.txt?

@tbfleming
Copy link
Contributor

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.

@cc32d9
Copy link
Contributor Author

cc32d9 commented Mar 19, 2019

it's gcc 8.2.0, using my own cmake files

@cc32d9
Copy link
Contributor Author

cc32d9 commented May 11, 2019

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() &&
                       ^~~~~~~~~~~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants