mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
fix: Wunused-result
warning disabled for clang-20.1 (compiler bug)
This commit is contained in:
@@ -84,3 +84,8 @@ endif()
|
||||
# add unit tests
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
|
||||
# TODO remove this hack when clang-20.2 is released
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 20 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 20.2)
|
||||
target_compile_options(mp-units-core PUBLIC "-Wno-unused-result")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user