Browse Source

Engine: Remove unnecessary unused warning suppressions

master
Riyyi 2 years ago
parent
commit
324da69bb2
  1. 6
      src/inferno/application.cpp
  2. 2
      src/inferno/entrypoint.h

6
src/inferno/application.cpp

@ -184,9 +184,6 @@ bool Application::onWindowClose(WindowCloseEvent& e)
bool Application::onWindowResize(WindowResizeEvent& e) bool Application::onWindowResize(WindowResizeEvent& e)
{ {
// Suppress unused warning
(void)e;
ruc::info("WindowResizeEvent {}x{}", e.getWidth(), e.getHeight()); ruc::info("WindowResizeEvent {}x{}", e.getWidth(), e.getHeight());
RenderCommand::setViewport(0, 0, e.getWidth(), e.getHeight()); RenderCommand::setViewport(0, 0, e.getWidth(), e.getHeight());
@ -196,9 +193,6 @@ bool Application::onWindowResize(WindowResizeEvent& e)
bool Application::onKeyPress(KeyPressEvent& e) bool Application::onKeyPress(KeyPressEvent& e)
{ {
// Suppress unused warning
(void)e;
ruc::info("KeyPressEvent {:3} {}", e.getKey(), keyName(e.getKey())); ruc::info("KeyPressEvent {:3} {}", e.getKey(), keyName(e.getKey()));
// Stop the main loop on 'Escape' keypress // Stop the main loop on 'Escape' keypress

2
src/inferno/entrypoint.h

@ -8,7 +8,7 @@
#include "inferno/application.h" #include "inferno/application.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[]) // NOLINT(misc-definitions-in-headers)
{ {
// Suppress unused warning // Suppress unused warning
(void)argc; (void)argc;

Loading…
Cancel
Save