Hi Denis,

>>> On 02/04/2019 04:28 PM, Pičugins Arsenijs wrote:
>>>>    CC       drivers/mbimmodem/mbim-message.o
>>>> drivers/mbimmodem/mbim-message.c: In function ‘_iter_copy_string’:
>>>> drivers/mbimmodem/mbim-message.c:199:18: error: cast increases required 
>>>> alignment of target type [-Werror=cast-align]
>>>>     uint16_t *le = (uint16_t *) buf;
>>>>                    ^
>>> 
>>> Does the attached patch fix this?
>> It fixes it for me. Please apply.
>> // Martin
> 
> All right, applied.

I wonder if using l_get_u16 here to ensure that we always get the alignment 
right isn’t better.

Regards

Marcel

_______________________________________________
ofono mailing list
ofono@ofono.org
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to