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

@@ -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
}