From 6e7eeedbd8bba0bb28ab0551343c987d23a8a371 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 3 Apr 2025 08:10:02 +0100 Subject: [PATCH] build: clang-20.1 workaround added to `package_info` --- conanfile.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conanfile.py b/conanfile.py index 4395d09a..97312cb9 100644 --- a/conanfile.py +++ b/conanfile.py @@ -363,3 +363,11 @@ class MPUnitsConan(ConanFile): self.cpp_info.components["core"].cxxflags.append("/utf-8") self.cpp_info.components["systems"].requires = ["core"] + + # https://github.com/llvm/llvm-project/issues/131410 + if ( + compiler == "clang" + and Version(compiler.version).major == 20 + and Version(compiler.version).minor == 1 + ): + self.cpp_info.components["core"].cxxflags.append("-Wno-unused-result")