Skip to content

Commit

Permalink
Merge pull request #4765 from uklotzde/fpclassify
Browse files Browse the repository at this point in the history
FpClassify: Fix warning for Clang 14
  • Loading branch information
daschuer authored May 23, 2022
2 parents d76f5f4 + 2259c74 commit 56361d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,9 @@ endif()
# from -ffast-math optimized objects. The MSVC option /fp:fast does not suffer this issue
add_library(FpClassify STATIC EXCLUDE_FROM_ALL src/util/fpclassify.cpp)
if(GNU_GCC OR LLVM_CLANG)
target_compile_options(FpClassify PRIVATE -fno-fast-math)
# The option `-ffp-contract=on` must precede `-fno-fast-math`
# to silence a warning on Clang 14
target_compile_options(FpClassify PRIVATE -ffp-contract=on -fno-fast-math)
endif()
target_link_libraries(mixxx-lib PRIVATE FpClassify)

Expand Down

0 comments on commit 56361d7

Please sign in to comment.