Skip to content

Commit

Permalink
Silence warnings on unqualified calls to std::move
Browse files Browse the repository at this point in the history
This is a new compiler warning add to at least Apple Clang. For now
we're choosing to silence the warning until at least other compilers
come to an agreement on whether this should be a warning.
  • Loading branch information
davisp committed Apr 4, 2023
1 parent 2c7abf8 commit 6c7717a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ else()
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wno-literal-suffix>)
endif()

# Disable newer Apple Clang warnings about unqualified calls to std::move
if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wno-unqualified-std-cast-call>)
endif()

endif()

# Definitions for all targets
Expand Down

0 comments on commit 6c7717a

Please sign in to comment.