diff --git a/AK/Tests/TestRefPtr.cpp b/AK/Tests/TestRefPtr.cpp index cf03da32c25..8b5d02dc8c3 100644 --- a/AK/Tests/TestRefPtr.cpp +++ b/AK/Tests/TestRefPtr.cpp @@ -79,7 +79,16 @@ TEST_CASE(assign_copy_self) { RefPtr 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); } diff --git a/AK/Tests/TestWeakPtr.cpp b/AK/Tests/TestWeakPtr.cpp index d272c1fc615..0d724e5e90d 100644 --- a/AK/Tests/TestWeakPtr.cpp +++ b/AK/Tests/TestWeakPtr.cpp @@ -29,6 +29,11 @@ #include #include +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-private-field" +#endif + class SimpleWeakable : public Weakable { public: SimpleWeakable() {} @@ -37,6 +42,10 @@ private: int m_member { 123 }; }; +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + TEST_CASE(basic_weak) { WeakPtr weak1; diff --git a/Documentation/BuildInstructions.md b/Documentation/BuildInstructions.md index edf65b61a8c..bdd30f5ba07 100644 --- a/Documentation/BuildInstructions.md +++ b/Documentation/BuildInstructions.md @@ -65,6 +65,12 @@ Notes: pkg_add bash gmp gcc git flock gmake sudo ``` +#### FreeBSD prerequisites +``` +$ pkg add coreutils gmake bash sudo git +$ ln -s /usr/local/bin/ginstall /usr/local/bin/install +``` + ### Build > Before starting, make sure that you have configured your global identity for git, or the first script will fail after running for a bit.