diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2016-02-15 15:00:22 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2016-03-02 18:16:26 +0000 |
commit | 38a5c3028ed27c4ceeffc32ddb17d1a8fe4fd0dd (patch) | |
tree | 44b3fa51b51b5e6a444a6038d8ab9e354bfe2fd1 /README.valgrind | |
parent | 338cfa15992b73d2cd43a50c84bf5ebc4eeda04f (diff) |
DBusMessageIter: eliminate padding on 64-bit platforms
Previously, 64-bit (LP64 or LLP64) platforms would have had 32 bits
of padding between pad2 and pad3. We want to guarantee that an ISO C
compiler will copy the entire struct when assigning between structs,
but padding is not guaranteed to be copied, so we want to ensure that
the struct is "packed".
Statically assert that the old ABI is compatible with the new ABI.
Reviewed-by: Thiago Macieira <thiago@kde.org>
[smcv: change >= to == as Thiago requested]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=94136
Diffstat (limited to 'README.valgrind')
0 files changed, 0 insertions, 0 deletions