Przeglądaj źródła

Suppress "packed member" warning

Scott Lahteine 4 lat temu
rodzic
commit
1d431fe8d2
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6
    0
      Marlin/src/sd/SdBaseFile.cpp

+ 6
- 0
Marlin/src/sd/SdBaseFile.cpp Wyświetl plik

@@ -20,6 +20,12 @@
20 20
  *
21 21
  */
22 22
 
23
+#if __GNUC__ > 8
24
+  // The NXP platform updated GCC from 7.2.1 to 9.2.1
25
+  // and this new warning apparently can be ignored.
26
+  #pragma GCC diagnostic ignored "-Waddress-of-packed-member"
27
+#endif
28
+
23 29
 /**
24 30
  * Arduino SdFat Library
25 31
  * Copyright (c) 2009 by William Greiman

Ładowanie…
Anuluj
Zapisz