Skip to content

Commit 8799a3c

Browse files
committed
fix(test): Hide pointer arithmetic warning
1 parent 96c79b3 commit 8799a3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/validation/psram/psram.ino

+5
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ void test_memcpy(void) {
7373
memset(buf, 0x55, MAX_TEST_SIZE);
7474
memset(buf2, 0xAA, 1024);
7575

76+
#pragma GCC diagnostic push
77+
#pragma GCC diagnostic ignored "-Wpointer-arith"
78+
7679
for (size_t i = 0; i < MAX_TEST_SIZE; i += 1024) {
7780
memcpy(buf + i, buf2, 1024);
7881
}
@@ -81,6 +84,8 @@ void test_memcpy(void) {
8184
TEST_ASSERT_NULL(memcmp(buf + i, buf2, 1024));
8285
}
8386

87+
#pragma GCC diagnostic pop
88+
8489
free(buf2);
8590
}
8691

0 commit comments

Comments
 (0)