mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
Notes:
sideshowbarker
2024-07-18 09:04:36 +09:00
Author: https://github.com/BertalanD
Commit: 6821cd45ed
Pull-request: https://github.com/SerenityOS/serenity/pull/8696
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/gunnarbeutner ✅
Reviewed-by: https://github.com/networkException
4 changed files with 4 additions and 7 deletions
|
@ -24,7 +24,6 @@ void insert_and_verify(int);
|
|||
NonnullRefPtr<SQL::SchemaDef> setup_schema(SQL::Database& db)
|
||||
{
|
||||
auto schema = SQL::SchemaDef::construct("TestSchema");
|
||||
EXPECT(schema != nullptr);
|
||||
db.add_schema(schema);
|
||||
return schema;
|
||||
}
|
||||
|
@ -33,7 +32,6 @@ NonnullRefPtr<SQL::SchemaDef> setup_table(SQL::Database& db)
|
|||
{
|
||||
auto schema = setup_schema(db);
|
||||
auto table = SQL::TableDef::construct(schema, "TestTable");
|
||||
EXPECT(table != nullptr);
|
||||
db.add_table(table);
|
||||
table->append_column("TextColumn", SQL::SQLType::Text);
|
||||
table->append_column("IntColumn", SQL::SQLType::Integer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue