diff --git a/src/audio_midi.cpp b/src/audio_midi.cpp index f63e6eb13d..30b52ace25 100644 --- a/src/audio_midi.cpp +++ b/src/audio_midi.cpp @@ -84,6 +84,8 @@ std::unique_ptr MidiDecoder::CreateFluidsynth(bool resample) { if (mididec && resample) { mididec = std::make_unique(std::move(mididec)); } +#else + (void)resample; #endif return mididec; @@ -107,6 +109,8 @@ std::unique_ptr MidiDecoder::CreateWildMidi(bool resample) { if (mididec && resample) { mididec = std::make_unique(std::move(mididec)); } +#else + (void)resample; #endif return mididec; @@ -126,6 +130,8 @@ std::unique_ptr MidiDecoder::CreateFmMidi(bool resample) { if (mididec && resample) { mididec = std::make_unique(std::move(mididec)); } +#else + (void)resample; #endif return mididec; @@ -152,6 +158,8 @@ void MidiDecoder::ChangeFluidsynthSoundfont(StringView sf_path) { // Was initialized before works.fluidsynth = FluidSynthDecoder::ChangeGlobalSoundfont(sf_path, works.fluidsynth_status); Output::Debug("Fluidsynth: {}", works.fluidsynth_status); +#else + (void)sf_path; #endif } diff --git a/src/game_battlealgorithm.cpp b/src/game_battlealgorithm.cpp index f2eda7702d..2ccb0262ef 100644 --- a/src/game_battlealgorithm.cpp +++ b/src/game_battlealgorithm.cpp @@ -62,9 +62,12 @@ Game_BattleAlgorithm::AlgorithmBase::AlgorithmBase(Type ty, Game_Battler* source type(ty), source(source), targets(std::move(in_targets)) { assert(source != nullptr); + +#ifndef NDEBUG for (auto* t: targets) { assert(t != nullptr); } +#endif Reset(); diff --git a/src/platform/sdl/sdl2_ui.cpp b/src/platform/sdl/sdl2_ui.cpp index 7c5d4ad72b..b97eea818d 100644 --- a/src/platform/sdl/sdl2_ui.cpp +++ b/src/platform/sdl/sdl2_ui.cpp @@ -1328,6 +1328,7 @@ bool Sdl2Ui::OpenURL(StringView url) { return true; #else + (void)url; Output::Warning("Cannot Open URL: SDL2 version too old (must be 2.0.14)"); return false; #endif diff --git a/src/scene_battle_rpg2k3.cpp b/src/scene_battle_rpg2k3.cpp index 9d2826f523..0c51d4a9a2 100644 --- a/src/scene_battle_rpg2k3.cpp +++ b/src/scene_battle_rpg2k3.cpp @@ -1739,8 +1739,7 @@ Scene_Battle_Rpg2k3::SceneActionReturn Scene_Battle_Rpg2k3::ProcessSceneActionBa return SceneActionReturn::eWaitTillNextFrame; } - auto* battler = pending_battle_action->GetSource(); - assert(battler != active_actor); + assert(pending_battle_action->GetSource() != active_actor); pending_battle_action = {}; RemoveCurrentAction();