You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
src/init.cpp:64:16: warning: deleting object of polymorphic class type ‘CWallet’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
Fix is:
diff --git a/src/keystore.h b/src/keystore.h
index 669bf90..9d6576d 100644
--- a/src/keystore.h
+++ b/src/keystore.h
@@ -15,6 +15,8 @@ protected:
mutable CCriticalSection cs_KeyStore;
public:
+ virtual ~CKeyStore() { };
+
// Add a key to the store.
virtual bool AddKey(const CKey& key) =0;
The text was updated successfully, but these errors were encountered:
src/init.cpp:64:16: warning: deleting object of polymorphic class type ‘CWallet’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
Fix is:
The text was updated successfully, but these errors were encountered: