mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -98,8 +98,7 @@ struct Buffer_test : beast::unit_test::suite
|
||||
x = b0;
|
||||
BEAST_EXPECT(x == b0);
|
||||
BEAST_EXPECT(sane(x));
|
||||
#if defined(__clang__) && (!defined(__APPLE__) && (__clang_major__ >= 7)) || \
|
||||
(defined(__APPLE__) && (__apple_build_version__ >= 10010043))
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
||||
#endif
|
||||
@@ -111,8 +110,7 @@ struct Buffer_test : beast::unit_test::suite
|
||||
BEAST_EXPECT(y == b3);
|
||||
BEAST_EXPECT(sane(y));
|
||||
|
||||
#if defined(__clang__) && (!defined(__APPLE__) && (__clang_major__ >= 7)) || \
|
||||
(defined(__APPLE__) && (__apple_build_version__ >= 10010043))
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user