chore: Fix compilation error with clang-20 and cleanup (#5543)

Removes clutter for old compilers, defaults to non-unity builds in cmake to match conanfile.py, and workaround for clang-20 compilation errors.
This commit is contained in:
Bronek Kozicki
2025-07-09 18:47:34 +01:00
committed by GitHub
parent a7eea9546f
commit f47e2f4e82
4 changed files with 40 additions and 7 deletions

View File

@@ -22,8 +22,18 @@
#include <xrpl/basics/contract.h>
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <boost/outcome.hpp>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#include <stdexcept>
namespace ripple {