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

Is abstract but has non-virtual destructor #13

Open
Lecrapouille opened this issue Feb 5, 2024 · 2 comments
Open

Is abstract but has non-virtual destructor #13

Lecrapouille opened this issue Feb 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Lecrapouille
Copy link

Bonjour, il manque des virtual ~xxx() = default;

/Users/runner/work/Janus/Janus/external/Dimension3D/sources/windows/Scene.cpp:38:3: warning: delete called on 'dim::Controller' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                delete controller;
                ^
/Users/runner/work/Janus/Janus/external/Dimension3D/sources/windows/Scene.cpp:41:3: warning: delete called on 'dim::Camera' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                delete camera;
                ^
/Users/runner/work/Janus/Janus/external/Dimension3D/sources/windows/Scene.cpp:53:3: warning: delete called on 'dim::Controller' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                delete controller;
                ^
/Users/runner/work/Janus/Janus/external/Dimension3D/sources/windows/Scene.cpp:55:3: warning: delete called on 'dim::Camera' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                delete camera;
                ^
/Users/runner/work/Janus/Janus/external/Dimension3D/sources/windows/Scene.cpp:200:3: warning: delete called on 'dim::Camera' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                delete this->camera;
                ^
/Users/runner/work/Janus/Janus/external/Dimension3D/sources/windows/Scene.cpp:215:3: warning: delete called on 'dim::Controller' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                delete this->controller;
                ^
/Users/runner/work/Janus/Janus/external/Dimension3D/sources/windows/Scene.cpp:330:4: warning: delete called on 'dim::Light' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
                        delete light;
                        ^
@angeluriot
Copy link
Owner

Possible de faire une PR ?

@angeluriot angeluriot added the bug Something isn't working label May 7, 2024
@Lecrapouille
Copy link
Author

PR opened. Tested some time ago on a fork of your Galaxy simulation https://github.com/Lecrapouille/Janus (also compiled on Mac OS X with CI until I realized that it does run because OpenCL uses OpenGL 4 that is not supported by Mac)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants