mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-04 02:06:22 -04:00
build: -Wuseless-cast
is a C++ warnings
This commit is contained in:
parent
5202677d6c
commit
9df98e69f0
@ -668,7 +668,7 @@ foreach(tgt ${LIBDWARFS_TARGETS} ${LIBDWARFS_OBJECT_TARGETS} dwarfs_test_helpers
|
|||||||
|
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
target_compile_options(${tgt} PRIVATE
|
target_compile_options(${tgt} PRIVATE
|
||||||
-Wuseless-cast
|
$<$<COMPILE_LANGUAGE:CXX>:-Wuseless-cast>
|
||||||
-Wlogical-op
|
-Wlogical-op
|
||||||
-Wduplicated-cond
|
-Wduplicated-cond
|
||||||
-Wduplicated-branches
|
-Wduplicated-branches
|
||||||
|
Loading…
x
Reference in New Issue
Block a user