We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf849d8 commit 61f91deCopy full SHA for 61f91de
ports/stm32/sdram.c
@@ -276,6 +276,13 @@ void sdram_leave_low_power(void) {
276
(0 << 9U)); // Mode Register Definition
277
}
278
279
+#if __GNUC__ >= 11
280
+// Prevent array bounds warnings when accessing SDRAM_START_ADDRESS as a memory pointer.
281
+#pragma GCC diagnostic push
282
+#pragma GCC diagnostic ignored "-Warray-bounds"
283
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
284
+#endif
285
+
286
bool sdram_test(bool fast) {
287
uint8_t const pattern = 0xaa;
288
uint8_t const antipattern = 0x55;
@@ -325,4 +332,8 @@ bool sdram_test(bool fast) {
325
332
return true;
326
333
327
334
335
336
+#pragma GCC diagnostic pop
337
338
328
339
#endif // FMC_SDRAM_BANK
0 commit comments