[SSSD] [PATCH] Suppress safealign warnings with DISCARD_ALIGN.
Michal Židek
mzidek at redhat.com
Thu Feb 13 14:26:53 UTC 2014
>> wrapper->ptr = source;
>> - wrapper->refcount = (int *)((char *)wrapper->ptr + refcount_offset);
>> + refcount_pos = (char *)wrapper->ptr + refcount_offset;
>> + wrapper->refcount = (int *) DISCARD_ALIGN(refcount_pos);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> It looks like macro DISCARD_ALIGN can be extended to in similar way like a
> talloc_zero(const void *ptr, #type);
>
> LS
Makes sense. Patch 2 adds this parameter.
Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Suppress-safealign-warnings-with-DISCARD_ALIGN.patch
Type: text/x-patch
Size: 3053 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140213/31fa3162/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-type-parameter-to-DISCARD_ALIGN.patch
Type: text/x-patch
Size: 3380 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140213/31fa3162/attachment-0001.bin>
More information about the sssd-devel
mailing list