Browse Source

Suppress data[] array warning

pull/1/head
Scott Lahteine 5 years ago
parent
commit
59508edf64
  1. 5
      Marlin/src/feature/binary_protocol.h

5
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() {

Loading…
Cancel
Save