ethereum / aleth

Aleth – Ethereum C++ client, tools and libraries
GNU General Public License v3.0
3.96k stars 2.17k forks source link

Compile error: Block.cpp:103:11: error: explicitly assigning value of variable of type 'dev::eth::Block' to itself #5578

Open lrettig opened 5 years ago

lrettig commented 5 years ago

I'm trying to compile v1.5.1 (linked in the hera circleci file) on OS X using clang version 10.0.1:

Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.5.0 Thread model: posix

[ 78%] Building CXX object test/CMakeFiles/testeth.dir/unittests/libethereum/Block.cpp.o
aleth/test/unittests/libethereum/Block.cpp:103:11: error: explicitly
      assigning value of variable of type 'dev::eth::Block' to itself
      [-Werror,-Wself-assign-overloaded]
    block = block;
    ~~~~~ ^ ~~~~~
1 error generated.
make[2]: *** [test/CMakeFiles/testeth.dir/unittests/libethereum/Block.cpp.o] Error 1
lrettig commented 5 years ago

1.6.0 built okay for me, feel free to close if you don't care about 1.5.1.