[Libreoffice-commits] core.git: editeng: Eliminate unecessary padding in classes

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Wed Nov 4 05:19:33 PST 2015

Il 04/11/2015 13:56, Norbert Thiebaud ha scritto:
> On Wed, Nov 4, 2015 at 5:22 AM, Stephan Bergmann <sbergman at redhat.com> wrote:
> In any case wasted space due to alignment is not a 'good thing', and
> the lack of care is a sad state of affair not a 'best practice'.
> proper packing of a structure is not an 'optimization', it should be
> the default.
> btw clang has -Wpadded :-)

Should we have an easy hack suggesting to poke at structs using pahole [0]?
BTW pahole releases have issues with c++11 that should be fixed in git [1].

[0] http://git.kernel.org/cgit/devel/pahole/pahole.git
[1] http://stackoverflow.com/questions/23730439/pahole-c11-support

Riccardo Magliocchetti


More information about the LibreOffice mailing list