[SSSD] [PATCH] Suppress safealign warnings with DISCARD_ALIGN.

Jakub Hrozek jhrozek at redhat.com
Tue Jul 1 09:37:41 UTC 2014


On Mon, Jun 30, 2014 at 04:59:16PM +0200, Lukas Slebodnik wrote:
> On (30/06/14 16:36), Michal Židek wrote:
> >On 06/30/2014 03:33 PM, Lukas Slebodnik wrote:
> >>On (30/06/14 15:18), Michal Židek wrote:
> >>>On 02/13/2014 03:26 PM, Michal Židek wrote:
> >>>>>>     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
> >>>>
> >>>
> >>>Rebased and added one patch for VTABLE_FUNC macro.
> >>>
> >>>Michal
> >>>
> >>
> 3x ACK
> 
> LS

Finally my Raspberry will compile SSSD w/o warnings :-)

Pushed to master:
    0f495aa73529b06b0a8b4c39cfd098351c4f6760
    684405758a96bd9fb47480d44f2e1a2f038f8def
    90ac46f71068d131391492360a8553bdd005b5a7



More information about the sssd-devel mailing list