fix compiler warnings (GCC + Clang)

This commit is contained in:
MihailRis
2025-03-20 22:04:29 +03:00
parent 6c3d2d0907
commit 3d22de761f
50 changed files with 80 additions and 103 deletions
-1
View File
@@ -310,7 +310,6 @@ void Hud::updateWorldGenDebug() {
}
void Hud::update(bool visible) {
const auto& level = frontend.getLevel();
const auto& chunks = *player.chunks;
const auto& menu = gui.getMenu();
-1
View File
@@ -38,7 +38,6 @@ bool menus::call(Engine& engine, runnable func) {
if (engine.isHeadless()) {
throw std::runtime_error("menus::call(...) in headless mode");
}
auto gui = engine.getGUI();
try {
func();
return true;
-1
View File
@@ -154,7 +154,6 @@ void LevelScreen::saveDecorations() {
void LevelScreen::saveWorldPreview() {
try {
logger.info() << "saving world preview";
const auto& paths = engine.getPaths();
auto player = playerController->getPlayer();
auto& settings = engine.getSettings();
int previewSize = settings.ui.worldPreviewSize.get();