瀏覽代碼

Suppress data[] array warning

Scott Lahteine 5 年之前
父節點
當前提交
59508edf64
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      Marlin/src/feature/binary_protocol.h

+ 5
- 0
Marlin/src/feature/binary_protocol.h 查看文件

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…
取消
儲存