From 324da69bb28daa6feebea82aa4e1bf36baa5c00d Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 22 Sep 2022 15:39:03 +0200 Subject: [PATCH] Engine: Remove unnecessary unused warning suppressions --- src/inferno/application.cpp | 6 ------ src/inferno/entrypoint.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/inferno/application.cpp b/src/inferno/application.cpp index 3d196d4..963db64 100644 --- a/src/inferno/application.cpp +++ b/src/inferno/application.cpp @@ -184,9 +184,6 @@ bool Application::onWindowClose(WindowCloseEvent& e) bool Application::onWindowResize(WindowResizeEvent& e) { - // Suppress unused warning - (void)e; - ruc::info("WindowResizeEvent {}x{}", 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) { - // Suppress unused warning - (void)e; - ruc::info("KeyPressEvent {:3} {}", e.getKey(), keyName(e.getKey())); // Stop the main loop on 'Escape' keypress diff --git a/src/inferno/entrypoint.h b/src/inferno/entrypoint.h index 6f7dd3a..f11c841 100644 --- a/src/inferno/entrypoint.h +++ b/src/inferno/entrypoint.h @@ -8,7 +8,7 @@ #include "inferno/application.h" -int main(int argc, char* argv[]) +int main(int argc, char* argv[]) // NOLINT(misc-definitions-in-headers) { // Suppress unused warning (void)argc;