1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Fix -Wunused-but-set-variable warnings

This commit is contained in:
Desour 2023-08-29 14:23:40 +02:00 committed by Gregor Parzefall
parent 95056f9783
commit 2ad4c9e0ce
2 changed files with 1 additions and 4 deletions

View file

@ -266,8 +266,7 @@ void GameUI::updateProfiler()
os << " Profiler page " << (int)m_profiler_current_page <<
", elapsed: " << g_profiler->getElapsedMs() << " ms)" << std::endl;
int lines = g_profiler->print(os, m_profiler_current_page, m_profiler_max_page);
++lines;
g_profiler->print(os, m_profiler_current_page, m_profiler_max_page);
EnrichedString str(utf8_to_wide(os.str()));
str.setBackground(video::SColor(120, 0, 0, 0));