We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96c79b3 commit dda736eCopy full SHA for dda736e
tests/validation/psram/psram.ino
@@ -73,6 +73,9 @@ void test_memcpy(void) {
73
memset(buf, 0x55, MAX_TEST_SIZE);
74
memset(buf2, 0xAA, 1024);
75
76
+#pragma GCC diagnostic push
77
+#pragma GCC diagnostic ignored "-Wpointer-arith"
78
+
79
for (size_t i = 0; i < MAX_TEST_SIZE; i += 1024) {
80
memcpy(buf + i, buf2, 1024);
81
}
@@ -81,6 +84,8 @@ void test_memcpy(void) {
84
TEST_ASSERT_NULL(memcmp(buf + i, buf2, 1024));
82
85
83
86
87
+#pragma GCC diagnostic pop
88
89
free(buf2);
90
91
0 commit comments