From 59508edf643b1e46855730f1277c95d2fe2059a9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 7 Oct 2019 19:31:48 -0500 Subject: [PATCH] Suppress data[] array warning --- Marlin/src/feature/binary_protocol.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Marlin/src/feature/binary_protocol.h b/Marlin/src/feature/binary_protocol.h index 58817f66ba..c558a3eeae 100644 --- a/Marlin/src/feature/binary_protocol.h +++ b/Marlin/src/feature/binary_protocol.h @@ -306,6 +306,9 @@ public: PORT_REDIRECT(card.transfer_port_index); #endif + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Warray-bounds" + while (PENDING(millis(), transfer_window)) { switch (stream_state) { /** @@ -439,6 +442,8 @@ public: break; } } + + #pragma GCC diagnostic pop } void dispatch() {