Enable more compiler warnings and treat them as errors.

This commit is contained in:
Brian Phlipot
2023-02-02 11:54:17 -08:00
committed by teejusb
parent f8f6f12999
commit 4a6b1a743c
141 changed files with 625 additions and 757 deletions
+1 -20
View File
@@ -254,27 +254,8 @@ void RageTextureManager::DeleteTexture( RageTexture *t )
m_texture_ids_by_pointer.erase(id_entry);
return;
}
else
{
FAIL_M("Tried to delete a texture that wasn't in the ids by pointer list.");
for (std::map<RageTextureID, RageTexture *>::iterator iter = m_mapPathToTexture.begin(); iter != m_mapPathToTexture.end(); ++iter)
{
if( iter->second == t )
{
m_mapPathToTexture.erase( iter ); // remove map entry
SAFE_DELETE( t ); // free the texture
std::map<RageTextureID, RageTexture*>::iterator tex_update_entry=
m_textures_to_update.find(iter->first);
if(tex_update_entry != m_textures_to_update.end())
{
m_textures_to_update.erase(tex_update_entry);
}
return;
}
}
}
FAIL_M("Tried to delete a texture that wasn't loaded");
FAIL_M("Tried to delete a texture that wasn't in the ids by pointer list.");
}
void RageTextureManager::GarbageCollect( GCType type )