mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:38:12 +00:00
Build: FreeBSD support
This commit is contained in:
parent
76bcd284f9
commit
4e27c58be7
3 changed files with 25 additions and 1 deletions
|
@ -79,7 +79,16 @@ TEST_CASE(assign_copy_self)
|
|||
{
|
||||
RefPtr<Object> object = adopt(*new Object);
|
||||
EXPECT_EQ(object->ref_count(), 1);
|
||||
object = object;
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
||||
#endif
|
||||
object = object;
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
EXPECT_EQ(object->ref_count(), 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue