mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Build: FreeBSD support
This commit is contained in:
parent
76bcd284f9
commit
4e27c58be7
3 changed files with 25 additions and 1 deletions
|
@ -29,6 +29,11 @@
|
|||
#include <AK/Weakable.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||
#endif
|
||||
|
||||
class SimpleWeakable : public Weakable<SimpleWeakable> {
|
||||
public:
|
||||
SimpleWeakable() {}
|
||||
|
@ -37,6 +42,10 @@ private:
|
|||
int m_member { 123 };
|
||||
};
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
TEST_CASE(basic_weak)
|
||||
{
|
||||
WeakPtr<SimpleWeakable> weak1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue