Browse Source

Suppress data[] array warning

Scott Lahteine 5 years ago
parent
commit
59508edf64
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Marlin/src/feature/binary_protocol.h

+ 5
- 0
Marlin/src/feature/binary_protocol.h View File

306
       PORT_REDIRECT(card.transfer_port_index);
306
       PORT_REDIRECT(card.transfer_port_index);
307
     #endif
307
     #endif
308
 
308
 
309
+    #pragma GCC diagnostic push
310
+    #pragma GCC diagnostic ignored "-Warray-bounds"
311
+
309
     while (PENDING(millis(), transfer_window)) {
312
     while (PENDING(millis(), transfer_window)) {
310
       switch (stream_state) {
313
       switch (stream_state) {
311
          /**
314
          /**
439
           break;
442
           break;
440
       }
443
       }
441
     }
444
     }
445
+
446
+    #pragma GCC diagnostic pop
442
   }
447
   }
443
 
448
 
444
   void dispatch() {
449
   void dispatch() {

Loading…
Cancel
Save