1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

unittests: Fix -Waddress warnings

This commit is contained in:
Martine Lenders 2014-08-27 10:46:09 +02:00
parent 6fb97585fd
commit 4960c57153

View File

@ -372,7 +372,7 @@ static void test_array(void)
TEST_ASSERT_EQUAL_INT(1, i);
char buffer[1024];
offset += cbor_deserialize_byte_string(&stream, offset, buffer, sizeof(buffer));
TEST_ASSERT_EQUAL_STRING("a", buffer);
TEST_ASSERT_EQUAL_STRING("a", &(buffer[0]));
}
}
@ -436,11 +436,11 @@ static void test_map(void)
offset += cbor_deserialize_int(&stream, offset, &key);
TEST_ASSERT_EQUAL_INT(1, key);
offset += cbor_deserialize_byte_string(&stream, offset, value, sizeof(value));
TEST_ASSERT_EQUAL_STRING("1", value);
TEST_ASSERT_EQUAL_STRING("1", &(value[0]));
offset += cbor_deserialize_int(&stream, offset, &key);
TEST_ASSERT_EQUAL_INT(2, key);
offset += cbor_deserialize_byte_string(&stream, offset, value, sizeof(value));
TEST_ASSERT_EQUAL_STRING("2", value);
TEST_ASSERT_EQUAL_STRING("2", &(value[0]));
}
}