diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | View.cpp | 2 | ||||
-rw-r--r-- | View.h | 2 | ||||
-rw-r--r-- | 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 +) @@ -33,7 +33,7 @@ View::~View() void -View::update(const float dt) +View::update(const float) { if (IsKeyPressed(KEY_SPACE)) { m_grid++; @@ -19,7 +19,7 @@ private: Camera m_camera; std::vector<Grid> m_grids; std::vector<Label> m_labels; - int m_grid; + unsigned int m_grid; float m_timer; Texture2D m_texture; Label* m_active; @@ -8,7 +8,7 @@ int -main(int argc, char* argv[]) +main(int, char*[]) { InitWindow(800, 600, "Derelict"); { |