Enable -Wduplicated-cond (GCC)

This commit is contained in:
Nekotekina 2021-03-13 18:46:59 +03:00
parent ccdea1c4ad
commit 0327ecc5c1
2 changed files with 2 additions and 3 deletions

View file

@ -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;
}

View file

@ -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()