Skip to content

Commit

Permalink
#1434 Fix warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeletier authored Nov 15, 2024
1 parent 5ea2aa1 commit 6fde571
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/core/src/Table.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,8 @@ void Table_clear_table_on_remove_hooks(void) {
});

ecs_entity_t e1 = ecs_insert(world, ecs_value(Position, {10, 20}));
ecs_entity_t e2 = ecs_insert(world, ecs_value(Position, {10, 20}));
ecs_entity_t e3 = ecs_insert(world, ecs_value(Position, {10, 20}));
/* e2 */ ecs_insert(world, ecs_value(Position, {10, 20}));
/* e3 */ ecs_insert(world, ecs_value(Position, {10, 20}));

ecs_table_t *table = ecs_get_table(world, e1);
ecs_table_clear_entities(world, table);
Expand Down
6 changes: 3 additions & 3 deletions test/cpp/src/Paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void Paths_id_from_str_pair_from_str(void) {
void Paths_id_from_str_unresolved_pair_from_str(void) {
flecs::world ecs;

flecs::entity rel = ecs.entity("Rel");
ecs.entity("Rel");

flecs::id id = ecs.id("(Rel, Tgt)");
test_assert(id == 0);
Expand Down Expand Up @@ -321,8 +321,8 @@ void Paths_id_from_str_any_pair_from_str(void) {
void Paths_id_from_str_invalid_pair(void) {
flecs::world ecs;

flecs::entity rel = ecs.entity("Rel");
flecs::entity tgt = ecs.entity("Tgt");
ecs.entity("Rel");
ecs.entity("Tgt");

flecs::id id = ecs.id("(Rel, Tgt");
test_assert(id == 0);
Expand Down

0 comments on commit 6fde571

Please sign in to comment.