-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
In file included from /root/minecraftcoin/src/CryptoNoteCore/CryptoNoteSerializa tion.h:8,
from /root/minecraftcoin/src/CryptoNoteProtocol/CryptoNoteProto colDefinitions.h:13,
from /root/minecraftcoin/include/INode.h:14,
from /root/minecraftcoin/src/PaymentGate/NodeFactory.h:7,
from /root/minecraftcoin/src/PaymentGate/NodeFactory.cpp:5:
/root/minecraftcoin/src/crypto/chacha8.h: In function 'void Crypto::generate_cha cha8_key(Crypto::cn_context&, const string&, Crypto::chacha8_key&)':
/root/minecraftcoin/src/crypto/chacha8.h:48:40: error: 'void* memcpy(void*, cons t void*, size_t)' writing to an object of non-trivially copyable type 'struct Cr ypto::chacha8_key'; use copy-assignment or copy-initialization instead [-Werror= class-memaccess]
48 | memcpy(&key, &pwd_hash, sizeof(key));
| ^
/root/minecraftcoin/src/crypto/chacha8.h:23:10: note: 'struct Crypto::chacha8_ke y' declared here
23 | struct chacha8_key {
| ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/PaymentGate.dir/build.make:63: src/CMakeFiles/Payme ntGate.dir/PaymentGate/NodeFactory.cpp.o] Error 1
make[3]: Leaving directory '/root/minecraftcoin/build/release'
make[2]: *** [CMakeFiles/Makefile2:423: src/CMakeFiles/PaymentGate.dir/all] Erro r 2
make[2]: Leaving directory '/root/minecraftcoin/build/release'
make[1]: *** [Makefile:95: all] Error 2
make[1]: Leaving directory '/root/minecraftcoin/build/release'
make: *** [Makefile:20: build-release] Error 2