-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing virtual destructors #260
Comments
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? 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 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'm wondering if this case is fixed by some of the recent dtor changes (I think will be in 2.3.1) e.g. #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.
[--------------] [ RUN ] VirtualOffsetSelectorTest::verifyAllIndexes [ PASSED ] VirtualOffsetSelectorTest::verifyAllIndexes [--------------] [--------------] [ RUN ] BasicVerification::verificationProgressShouldBeConvertibleToBool free(): invalid pointer
The text was updated successfully, but these errors were encountered: