Skip to content

Commit

Permalink
Silence warnings on unqualified calls to std::move (#4023)
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.

---
TYPE: IMPROVEMENT
DESC: Silence warnings about unqualified calls to std::move on Apple Clang
  • Loading branch information
davisp authored Apr 5, 2023
1 parent 2c7abf8 commit 53bce21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ 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")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "14.0.3")
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wno-unqualified-std-cast-call>)
endif()
endif()

endif()

# Definitions for all targets
Expand Down

0 comments on commit 53bce21

Please sign in to comment.