fix: silencia warnings de stb_vorbis i paràmetre no usat
This commit is contained in:
@@ -8,8 +8,13 @@
|
|||||||
// Implementación de stb_vorbis (debe estar ANTES de incluir jail_audio.hpp).
|
// Implementación de stb_vorbis (debe estar ANTES de incluir jail_audio.hpp).
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#undef STB_VORBIS_HEADER_ONLY
|
#undef STB_VORBIS_HEADER_ONLY
|
||||||
|
// stb_vorbis.c (codi de tercers) dispara -Wtautological-compare; el silenciem
|
||||||
|
// només per a aquesta inclusió sense afectar el nostre codi.
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wtautological-compare"
|
||||||
// NOLINTNEXTLINE(bugprone-suspicious-include) — stb_vorbis és single-file: el TU principal inclou el .c per portar la implementació.
|
// NOLINTNEXTLINE(bugprone-suspicious-include) — stb_vorbis és single-file: el TU principal inclou el .c per portar la implementació.
|
||||||
#include "external/stb_vorbis.c"
|
#include "external/stb_vorbis.c"
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
// stb_vorbis.c filtra les macros L, C i R (i PLAYBACK_*) al TU. Les netegem
|
// stb_vorbis.c filtra les macros L, C i R (i PLAYBACK_*) al TU. Les netegem
|
||||||
// perquè xocarien amb noms de paràmetres de plantilla en altres headers.
|
// perquè xocarien amb noms de paràmetres de plantilla en altres headers.
|
||||||
#undef L
|
#undef L
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ void TilemapRenderer::setTile(int index, int tile_value) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Pinta el mapa estático y debug lines
|
// Pinta el mapa estático y debug lines
|
||||||
void TilemapRenderer::fillMapTexture(const CollisionMap* /*collision_map*/) {
|
void TilemapRenderer::fillMapTexture([[maybe_unused]] const CollisionMap* collision_map) {
|
||||||
const Uint8 COLOR = stringToColor(bg_color_);
|
const Uint8 COLOR = stringToColor(bg_color_);
|
||||||
auto previous_renderer = Screen::get()->getRendererSurface();
|
auto previous_renderer = Screen::get()->getRendererSurface();
|
||||||
Screen::get()->setRendererSurface(map_surface_);
|
Screen::get()->setRendererSurface(map_surface_);
|
||||||
|
|||||||
Reference in New Issue
Block a user