https://bugs.kde.org/show_bug.cgi?id=370028

--- Comment #37 from Tamara Vlahovic <tamara.vlaho...@imgtec.com> ---
Created attachment 105467
  --> https://bugs.kde.org/attachment.cgi?id=105467&action=edit
Patch for m_mallocfree.c

This patch fixes "cast-align" warnings in coregind/m_mallocfree.c, using
ASSUME_ALIGNED macro.

Struct Block in file coregind/m_mallocfree.c does not contain any fields,
because their variable length. This creates a need for a lot of casts that
cause "cast-align" warnings.
In line 124 is noted that all Block payloads must be VG_MIN_MALLOC_SZB-aligned.
VG_MIN_MALLOC_SZB has value of 8 in 32-bit architectures and 16 on 64-bit
architectures. Because of this we may assume that all the types which have size
of VG_MIN_MALLOC_SZB or less are correctly aligned.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to