Open matthewT53 opened 2 years ago
Just tried what I think you are doing on windows Visual Studio 2019, but haven't got that problem.
Could you show your changed classes? Also are you only getting this when building the tests?
Will take more time to get gcc going to try it out.
I'm not sure fakeit is really designed to be build with a high error level (there a some hacks inside the library). I don't know meson but I'm pretty sure you should be able to disable / reduce warning level for system headers (everything included with <>
, it's a feature in GCC/Clang and MSVC).
But if we can reduce the number of warnings (or locally silence the ones we're sure are "false-positive") it's always better. So I guess we shouldn't ignore these too much.
I've tried to fix the issue by adding virtual destructors into the affected classes however when I try to run the unit tests I get free(); Invalid pointer.
I'm wondering if this case is fixed by some of the recent dtor changes (I think will be in 2.3.1) e.g. https://github.com/eranpeer/FakeIt/pull/289
Hello, when building FakeIt 2.0.9 from conan-center I get the following warnings as errors:
I am building my C++ project with meson with warning level = 3 and Werror set to true.
There are non-virtual-dtor errors in more classes. I've tried to fix the issue by adding virtual destructors into the affected classes however when I try to run the unit tests I get free(); Invalid pointer.