Skip to content
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

Compile Warning: 'melatonin::internal::CachedShadows' has virtual functions but non-virtual destructor #70

Closed
JelleBakker opened this issue Sep 3, 2024 · 5 comments · Fixed by #74

Comments

@JelleBakker
Copy link
Contributor

See title

@sudara
Copy link
Owner

sudara commented Sep 3, 2024

What compiler is this with? (Not seeing this locally) Funny, I removed the explicit dtor because of this other warning when it was in place:

#65

@JelleBakker
Copy link
Contributor Author

I'm building a Xcode project using Xcode 15.4 exported from a JUCE 8.0.1 projucer project, with recommended compiler flags (in macOS exporter settings) enabled. Does this answer your question?

@sudara
Copy link
Owner

sudara commented Sep 3, 2024

Yes, thanks! We have compiler warnings on the repo, so I guess I need to go investigate why the tests didn't fail...

@JelleBakker
Copy link
Contributor Author

@sudara adding the following code in CachedShadows makes it compile with zero warnings:

CachedShadows (const CachedShadows&) = default;
CachedShadows& operator=(const CachedShadows&) = default;
virtual ~CachedShadows() = default;

@JelleBakker
Copy link
Contributor Author

See #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants