diff --git a/CMakeLists.txt b/CMakeLists.txt index 705d476..fb9ecf0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,7 +243,7 @@ endif() set_source_files_properties( source/external/stb_image_write_impl.cpp source/external/stb_vorbis_impl.cpp - PROPERTIES COMPILE_OPTIONS "-Wno-missing-field-initializers;-Wno-deprecated-declarations" + PROPERTIES COMPILE_OPTIONS "-Wno-missing-field-initializers;-Wno-deprecated-declarations;-Wno-tautological-compare" ) # Shaders deben compilarse antes que el ejecutable (Linux/Windows con glslc) diff --git a/source/game/gameplay/tilemap_renderer.cpp b/source/game/gameplay/tilemap_renderer.cpp index 3bea3f9..767c8bd 100644 --- a/source/game/gameplay/tilemap_renderer.cpp +++ b/source/game/gameplay/tilemap_renderer.cpp @@ -82,7 +82,7 @@ static void renderDebugCollisionTilemap(const std::vector& collision_tile_m #endif // Pinta el mapa estático -void TilemapRenderer::fillMapTexture(const std::vector& /*collision_tile_map*/) { +void TilemapRenderer::fillMapTexture([[maybe_unused]] const std::vector& collision_tile_map) { auto previous_renderer = Screen::get()->getRendererSurface(); Screen::get()->setRendererSurface(map_surface_); map_surface_->clear(bg_color_); diff --git a/source/game/scenes/game.hpp b/source/game/scenes/game.hpp index 6cb3786..6e96abf 100644 --- a/source/game/scenes/game.hpp +++ b/source/game/scenes/game.hpp @@ -57,7 +57,7 @@ class Game { }; // --- Métodos --- - static void handleEvents(); // Comprueba los eventos de la cola + void handleEvents(); // Comprueba los eventos de la cola void transitionToState(State new_state); // Cambia al estado especificado y resetea los timers void updatePlaying(float delta_time); // Actualiza el juego en estado PLAYING void updateBlackScreen(float delta_time); // Actualiza el juego en estado BLACK_SCREEN