From 650d81b8d185ae54e456b5159c3b94e0df94e252 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 20 May 2022 19:56:43 +0200 Subject: Enabled warnings during compilation --- CMakeLists.txt | 4 ++++ View.cpp | 2 +- View.h | 2 +- main.cpp | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30ff0fe..e300660 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,3 +17,7 @@ target_link_libraries( raylib nlohmann_json::nlohmann_json ) +target_compile_options( + ${PROJECT_NAME} + PRIVATE -Wall -Wextra -Wpedantic +) diff --git a/View.cpp b/View.cpp index 93ad894..719456e 100644 --- a/View.cpp +++ b/View.cpp @@ -33,7 +33,7 @@ View::~View() void -View::update(const float dt) +View::update(const float) { if (IsKeyPressed(KEY_SPACE)) { m_grid++; diff --git a/View.h b/View.h index e58b539..e700bb0 100644 --- a/View.h +++ b/View.h @@ -19,7 +19,7 @@ private: Camera m_camera; std::vector m_grids; std::vector