Skip to content

Commit

Permalink
Fixed compilation warnings on OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
richiware committed Aug 27, 2018
1 parent 0ea20e4 commit 1df42bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/common/check_configuration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function(set_common_compile_options target)
$<$<COMPILE_LANGUAGE:CXX>:-Woverloaded-virtual>
-Wconversion
-Wsign-conversion
-Wlogical-op
$<$<COMPILE_LANGUAGE:CXX>:-Wuseless-cast>
$<$<CXX_COMPILER_ID:GNU>:-Wlogical-op>
$<$<AND:$<CXX_COMPILER_ID:GNU>,$<COMPILE_LANGUAGE:CXX>>:-Wuseless-cast>
-Wdouble-promotion
$<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>
$<$<OR:$<AND:$<CXX_COMPILER_ID:GNU>,$<NOT:$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6.0.0>>>,$<AND:$<C_COMPILER_ID:GNU>,$<NOT:$<VERSION_LESS:$<C_COMPILER_VERSION>,6.0.0>>>>:-Wnull-dereference>
Expand Down

0 comments on commit 1df42bb

Please sign in to comment.