Skip to content

Commit

Permalink
cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed May 6, 2022
1 parent 931b82b commit 585c305
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ elseif(CABLE_COMPILER_GNU)
set(CMAKE_CXX_FLAGS_COVERAGE "--coverage")
endif()

# -Wcast-qual
# -Wcast-align
# $<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>
add_compile_options(
#-Wcast-qual
#-Wcast-align
-Wmissing-declarations
$<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>
$<$<COMPILE_LANGUAGE:CXX>:-Wextra-semi>
)
cable_add_cxx_compiler_flag_if_supported(-Wno-unknown-attributes)
Expand All @@ -105,6 +105,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES Clang)
-Wno-documentation
-Wno-documentation-unknown-command
-Wno-bad-function-cast
-Wno-exit-time-destructors
)
endif()
endif()
Expand Down

0 comments on commit 585c305

Please sign in to comment.