mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:08:10 +00:00
Tests: Fix compile errors on Clang
Since Clang enables a couple of warnings that we don't have in GCC, these were not caught before. Included fixes: - Use correct printf format string for `size_t` - Don't compare Nonnull(Ref|Own)Ptr` to nullptr - Fix unsigned int& => unsigned long& conversion
This commit is contained in:
parent
a88f7c99fe
commit
6821cd45ed
4 changed files with 4 additions and 7 deletions
|
@ -16,7 +16,6 @@ struct Object : public RefCounted<Object> {
|
|||
TEST_CASE(basics)
|
||||
{
|
||||
auto object = adopt_ref(*new Object);
|
||||
EXPECT(object.ptr() != nullptr);
|
||||
EXPECT_EQ(object->ref_count(), 1u);
|
||||
object->ref();
|
||||
EXPECT_EQ(object->ref_count(), 2u);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue