Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8799a3c

Browse filesBrowse files
committed
fix(test): Hide pointer arithmetic warning
1 parent 96c79b3 commit 8799a3c
Copy full SHA for 8799a3c

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎tests/validation/psram/psram.ino

Copy file name to clipboardExpand all lines: tests/validation/psram/psram.ino
+5Lines changed: 5 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.