When compiling with clang (android build, may also affect macOS), i get a repeated warning :-
warning: destructor called on non-final 'CBlockHeader' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
It can be reproduced using ndk 20 and all api above 24 so far. Unavoidable because google has deprecated use of GCC and only clang remains.