🧹Fix some compile warnings (#10158)

Fix  some compile warnings
<img width="1489" height="1161" alt="image" src="https://github.com/user-attachments/assets/da2d592f-b6d5-4706-9c97-ec6a0da4292f" />
This commit is contained in:
Rodrigo Faselli
2026-01-04 03:16:30 -03:00
committed by GitHub
parent 03c8541b09
commit 0c5f6c9865
3 changed files with 9 additions and 3 deletions

View File

@@ -2071,7 +2071,13 @@ void GUI_App::init_app_config()
}
// Change current dirtory of application
[[maybe_unused]] auto unused_result = chdir(encode_path((Slic3r::data_dir() + "/log").c_str()).c_str());
#ifdef _WIN32
[[maybe_unused]] auto unused_result = _chdir(encode_path((Slic3r::data_dir() + "/log").c_str()).c_str());
#else
[[maybe_unused]] auto unused_result = chdir(encode_path((Slic3r::data_dir() + "/log").c_str()).c_str());
#endif
} else {
m_datadir_redefined = true;
}