activa -Wextra -Wpedantic i neteja warnings

This commit is contained in:
2026-05-18 21:53:32 +02:00
parent 78682b7071
commit e47bc5188a
8 changed files with 45 additions and 13 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ void TilemapRenderer::setTile(int index, int tile_value) {
#endif
// Pinta el mapa estático y debug lines
void TilemapRenderer::fillMapTexture(const CollisionMap* collision_map) {
void TilemapRenderer::fillMapTexture(const CollisionMap* /*collision_map*/) {
const Uint8 COLOR = stringToColor(bg_color_);
auto previous_renderer = Screen::get()->getRendererSurface();
Screen::get()->setRendererSurface(map_surface_);
+2 -2
View File
@@ -181,7 +181,7 @@ void LoadingScreen::updateState(float delta_time) {
}
// Gestiona la carga monocromática (time-based simplificado)
void LoadingScreen::updateMonoLoad(float delta_time) {
void LoadingScreen::updateMonoLoad(float /*delta_time*/) {
// Calcular progreso lineal (0.0 - 1.0)
float progress = state_time_ / LOADING_MONO_DURATION;
progress = std::min(progress, 1.0F);
@@ -234,7 +234,7 @@ void LoadingScreen::updateMonoLoad(float delta_time) {
}
// Gestiona la carga en color
void LoadingScreen::updateColorLoad(float delta_time) {
void LoadingScreen::updateColorLoad(float /*delta_time*/) {
// Calcular progreso lineal (0.0 - 1.0)
float progress = state_time_ / LOADING_COLOR_DURATION;
progress = std::min(progress, 1.0F);
+1 -1
View File
@@ -66,7 +66,7 @@ void Logo::handleInput() {
}
// Gestiona el logo de JAILGAME
void Logo::updateJAILGAMES(float delta_time) {
void Logo::updateJAILGAMES(float /*delta_time*/) {
// Solo actualizar durante el estado JAILGAMES_SLIDE_IN
if (state_ != State::JAILGAMES_SLIDE_IN) {
return;
+1 -1
View File
@@ -164,7 +164,7 @@ void Title::handleMainMenuKeyPress(SDL_Keycode key) {
}
// Comprueba las entradas
void Title::handleInput(float delta_time) {
void Title::handleInput(float /*delta_time*/) {
Input::get()->update();
// Permitir cancelar remap con ESC/CANCEL