mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
14783492d9
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.
16 lines
531 B
Plaintext
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
|
|
+ ;
|
|
};
|
|
|