Skip to content
Snippets Groups Projects
Commit 875377d6 authored by Martine Lenders's avatar Martine Lenders
Browse files

tests/unittests: suppress cppcheck redundantAssignment warning

To make the CI happy ;-).
parent 2451fb36
No related branches found
No related tags found
No related merge requests found
......@@ -302,6 +302,10 @@ static void test_nib_iter__three_elem_middle_removed(void)
addr.u64[1].u64++;
TEST_ASSERT_NOT_NULL((node3 = _nib_onl_alloc(&addr, IFACE)));
node3->mode = _DRL;
/* cppcheck-suppress redundantAssignment
* (reason: we assigned _FT before so _nib_onl_alloc would recognize node2
* as used, now we want to clear it, so we need to set it to
* _EMPTY... we are testing internals of data structures here) */
node2->mode = _EMPTY;
TEST_ASSERT(_nib_onl_clear(node2));
TEST_ASSERT_NOT_NULL((res = _nib_onl_iter(NULL)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment