mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Allow build to support XCode 10.2
This commit is contained in:
committed by
Nik Bougalis
parent
1e1e8c2547
commit
de1d102535
@@ -98,7 +98,9 @@ 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)
|
||||
#if defined(__clang__) && \
|
||||
(!defined(__APPLE__) && (__clang_major__ >= 7)) || \
|
||||
(defined(__APPLE__) && (__apple_build_version__ >= 10010043))
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
||||
#endif
|
||||
@@ -109,7 +111,10 @@ struct Buffer_test : beast::unit_test::suite
|
||||
y = y;
|
||||
BEAST_EXPECT (y == b3);
|
||||
BEAST_EXPECT (sane (y));
|
||||
#if defined(__clang__) && !defined(__APPLE__) && (__clang_major__ >= 7)
|
||||
|
||||
#if defined(__clang__) && \
|
||||
(!defined(__APPLE__) && (__clang_major__ >= 7)) || \
|
||||
(defined(__APPLE__) && (__apple_build_version__ >= 10010043))
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
}
|
||||
@@ -117,7 +122,7 @@ struct Buffer_test : beast::unit_test::suite
|
||||
// Check move constructor & move assignments:
|
||||
{
|
||||
testcase ("Move Construction / Assignment");
|
||||
|
||||
|
||||
static_assert(std::is_nothrow_move_constructible<Buffer>::value, "");
|
||||
static_assert(std::is_nothrow_move_assignable<Buffer>::value, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user