Skip to content

Commit 00ea0f8

Browse files
Fix const-correctness warnings in test_api_lifecycle.cpp
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 25a0519 commit 00ea0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/test_api_lifecycle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,13 +875,13 @@ static void test_canard_new_validation_branches()
875875

876876
// vtable->now == NULL.
877877
{
878-
canard_vtable_t bad = { .now = nullptr, .tx = mock_tx, .filter = nullptr };
878+
const canard_vtable_t bad = { .now = nullptr, .tx = mock_tx, .filter = nullptr };
879879
TEST_ASSERT_FALSE(canard_new(&self, &bad, mem, 16U, 0U, 0U));
880880
}
881881

882882
// vtable->tx == NULL.
883883
{
884-
canard_vtable_t bad = { .now = mock_now, .tx = nullptr, .filter = nullptr };
884+
const canard_vtable_t bad = { .now = mock_now, .tx = nullptr, .filter = nullptr };
885885
TEST_ASSERT_FALSE(canard_new(&self, &bad, mem, 16U, 0U, 0U));
886886
}
887887

0 commit comments

Comments
 (0)