On master (f05c1ac444e0c893516535bfdf07c5c8cd9bce16) GCC compiler fires a false positive -Wmaybe-uninitialized
:
0wallet/wallet.cpp: In static member function ‘static std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain&, const WalletLocation&, std::__cxx11::string&, std::vector<std::__cxx11::basic_string<char> >&, uint64_t)’:
1wallet/wallet.cpp:3913:27: warning: ‘*((void*)& time_first_key +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2 Optional<int64_t> time_first_key;
3 ^~~~~~~~~~~~~~
The same as #15292.
This PR leverages a workaround and removes the warning.