mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
Fix -Wsometimed-uninitialized (Clang)
This commit is contained in:
parent
428771f1d7
commit
2c18d67769
3 changed files with 2 additions and 3 deletions
|
@ -1552,7 +1552,7 @@ namespace rsx
|
||||||
{
|
{
|
||||||
mapped_offset = 0;
|
mapped_offset = 0;
|
||||||
}
|
}
|
||||||
else if (valid_offset)
|
else
|
||||||
{
|
{
|
||||||
const u32 offset_in_x = valid_offset % rsx_pitch;
|
const u32 offset_in_x = valid_offset % rsx_pitch;
|
||||||
const u32 offset_in_y = valid_offset / rsx_pitch;
|
const u32 offset_in_y = valid_offset / rsx_pitch;
|
||||||
|
|
|
@ -820,7 +820,7 @@ void VKGSRender::check_heap_status(u32 flags)
|
||||||
m_index_buffer_ring_info.is_critical() ||
|
m_index_buffer_ring_info.is_critical() ||
|
||||||
m_raster_env_ring_info.is_critical();
|
m_raster_env_ring_info.is_critical();
|
||||||
}
|
}
|
||||||
else if (flags)
|
else
|
||||||
{
|
{
|
||||||
heap_critical = false;
|
heap_critical = false;
|
||||||
u32 test = 1u << std::countr_zero(flags);
|
u32 test = 1u << std::countr_zero(flags);
|
||||||
|
|
|
@ -44,7 +44,6 @@ else()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
add_compile_options(-fconstexpr-steps=16777216)
|
add_compile_options(-fconstexpr-steps=16777216)
|
||||||
add_compile_options(-Wno-sometimes-uninitialized)
|
|
||||||
add_compile_options(-Wno-unused-lambda-capture)
|
add_compile_options(-Wno-unused-lambda-capture)
|
||||||
add_compile_options(-Wno-unused-private-field)
|
add_compile_options(-Wno-unused-private-field)
|
||||||
add_compile_options(-Wno-pessimizing-move)
|
add_compile_options(-Wno-pessimizing-move)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue