mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix -Wunused-but-set-variable warnings
This commit is contained in:
		@@ -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));
 | 
			
		||||
 
 | 
			
		||||
@@ -455,10 +455,8 @@ size_t get_biome_list(lua_State *L, int index,
 | 
			
		||||
 | 
			
		||||
	// returns number of failed resolutions
 | 
			
		||||
	size_t fail_count = 0;
 | 
			
		||||
	size_t count = 0;
 | 
			
		||||
 | 
			
		||||
	for (lua_pushnil(L); lua_next(L, index); lua_pop(L, 1)) {
 | 
			
		||||
		count++;
 | 
			
		||||
		Biome *biome = get_or_load_biome(L, -1, biomemgr);
 | 
			
		||||
		if (!biome) {
 | 
			
		||||
			fail_count++;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user