1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/graphics/libfpx/files/patch-unused-padding
Mikhail Teterin 14783492d9 Upgrade from 1.3.1-3 to 1.3.1-4. The only real change (outside of the auto* nonsense) is the
restoration of the padding at the end of CDirEntry.

Clang++ used to flag it as unused private field, which lead to its removal (incorrectly) -- and
this new release from upstream restores the padding. It is still flagged by clang++ so a new patch
attempts to suppress that.
2014-02-14 16:57:27 +00:00

16 lines
531 B
Plaintext

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
+ ;
};