mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Enable -Wduplicated-cond (GCC)
This commit is contained in:
parent
ccdea1c4ad
commit
0327ecc5c1
@ -719,8 +719,7 @@ next:
|
||||
|
||||
goto next;
|
||||
}
|
||||
// TODO:: Syphurith: I don't know whether we should keep this else-if now. Since the if condition is same with this one.
|
||||
else if (adec.reader.size < static_cast<u32>(buf_size))
|
||||
else if (adec.reader.size < static_cast<u32>(buf_size) && 0)
|
||||
{
|
||||
buf_size = adec.reader.size;
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ else()
|
||||
add_compile_options(-Wclobbered)
|
||||
add_compile_options(-Wcast-function-type)
|
||||
add_compile_options(-Wduplicated-branches)
|
||||
#add_compile_options(-Wduplicated-cond)
|
||||
add_compile_options(-Wduplicated-cond)
|
||||
#add_compile_options(-Wredundant-decls)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user