Enable -Wduplicated-cond (GCC)
This commit is contained in:
@@ -719,8 +719,7 @@ next:
|
|||||||
|
|
||||||
goto 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) && 0)
|
||||||
else if (adec.reader.size < static_cast<u32>(buf_size))
|
|
||||||
{
|
{
|
||||||
buf_size = adec.reader.size;
|
buf_size = adec.reader.size;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ else()
|
|||||||
add_compile_options(-Wclobbered)
|
add_compile_options(-Wclobbered)
|
||||||
add_compile_options(-Wcast-function-type)
|
add_compile_options(-Wcast-function-type)
|
||||||
add_compile_options(-Wduplicated-branches)
|
add_compile_options(-Wduplicated-branches)
|
||||||
#add_compile_options(-Wduplicated-cond)
|
add_compile_options(-Wduplicated-cond)
|
||||||
#add_compile_options(-Wredundant-decls)
|
#add_compile_options(-Wredundant-decls)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user