VideoCommon: Clean up class-memaccess warnings

This commit is contained in:
Techjar
2018-10-14 18:09:17 -04:00
parent dace56cb62
commit 8560eecd49
3 changed files with 14 additions and 8 deletions

View File

@ -90,7 +90,7 @@ void SWVertexLoader::vFlush()
for (u32 i = 0; i < IndexGenerator::GetIndexLen(); i++)
{
const u16 index = m_local_index_buffer[i];
memset(&m_vertex, 0, sizeof(m_vertex));
memset(static_cast<void*>(&m_vertex), 0, sizeof(m_vertex));
// Super Mario Sunshine requires those to be zero for those debug boxes.
m_vertex.color = {};