Fix -Wsometimed-uninitialized (Clang)

This commit is contained in:
Nekotekina 2021-02-18 14:15:52 +03:00
parent 428771f1d7
commit 2c18d67769
3 changed files with 2 additions and 3 deletions

View File

@ -1552,7 +1552,7 @@ namespace rsx
{
mapped_offset = 0;
}
else if (valid_offset)
else
{
const u32 offset_in_x = valid_offset % rsx_pitch;
const u32 offset_in_y = valid_offset / rsx_pitch;

View File

@ -820,7 +820,7 @@ void VKGSRender::check_heap_status(u32 flags)
m_index_buffer_ring_info.is_critical() ||
m_raster_env_ring_info.is_critical();
}
else if (flags)
else
{
heap_critical = false;
u32 test = 1u << std::countr_zero(flags);

View File

@ -44,7 +44,6 @@ else()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-fconstexpr-steps=16777216)
add_compile_options(-Wno-sometimes-uninitialized)
add_compile_options(-Wno-unused-lambda-capture)
add_compile_options(-Wno-unused-private-field)
add_compile_options(-Wno-pessimizing-move)