Browse Source

Suppress "packed member" warning

Scott Lahteine 4 years ago
parent
commit
2b759b9e8d
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Marlin/src/sd/SdBaseFile.cpp

+ 6
- 0
Marlin/src/sd/SdBaseFile.cpp View File

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
  * Arduino SdFat Library
30
  * Arduino SdFat Library
25
  * Copyright (c) 2009 by William Greiman
31
  * Copyright (c) 2009 by William Greiman

Loading…
Cancel
Save