Bläddra i källkod

Suppress "packed member" warning

Scott Lahteine 4 år sedan
förälder
incheckning
2b759b9e8d
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6
    0
      Marlin/src/sd/SdBaseFile.cpp

+ 6
- 0
Marlin/src/sd/SdBaseFile.cpp Visa fil

@@ -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

Laddar…
Avbryt
Spara