opnsense-ports/graphics/libfpx/files/patch-unused-padding
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
531 B
Text

The padding is important (earlier versions tried to remove it leading to peril),
but clang++ complains about it. Mark it as __unused to prevent that...
--- oless/h/dir.hxx 2014-02-12 08:14:24.000000000 -0500
+++ oless/h/dir.hxx 2014-02-14 11:36:59.000000000 -0500
@@ -142,5 +142,9 @@
inline void SetBitFlags(BYTE bValue, BYTE bMask);
- BYTE _bpad[CBDIRPAD]; // do not remove, bad things will happen!
+ BYTE _bpad[CBDIRPAD] // do not remove, bad things will happen!
+#ifdef __clang__
+ __unused
+#endif
+ ;
};