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

warning: ‘throw’ will always call ‘terminate’ #235

Open
Rampoina opened this issue Aug 4, 2022 · 0 comments
Open

warning: ‘throw’ will always call ‘terminate’ #235

Rampoina opened this issue Aug 4, 2022 · 0 comments

Comments

@Rampoina
Copy link
Contributor

Rampoina commented Aug 4, 2022

The compilation throws this warning:

/mg-rampoina/source/glest_game/graphics/renderer.cpp: In destructor ‘virtual Glest::Game::Renderer::~Renderer()’:
/mg-rampoina/source/glest_game/graphics/renderer.cpp:353:17: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  353 |                 throw megaglest_runtime_error(szBuf);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mg-rampoina/source/glest_game/graphics/renderer.cpp:353:17: note: in C++11 destructors default to ‘noexcept’

https://github.com/MegaGlest/megaglest-source/blob/develop/source/glest_game/graphics/renderer.cpp#L353

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

No branches or pull requests

1 participant