On 8 Oct 2025, at 11:34, Ilya Maximets wrote:
> The attribute was added in GCC 4.9. Older versions complain:
>
> lib/util.h:164:1:
> warning: 'returns_nonnull' attribute directive ignored [-Wattributes]
> OVS_RETURNS_NONNULL void *xmalloc(size_t) MALLOC_LIKE;
> ^
>
> Fixes: ed738eca39ef ("util: Annotate function that will never return NULL.")
> Reported-at:
> https://mail.openvswitch.org/pipermail/ovs-discuss/2025-September/053800.html
> Reported-by: Brendan Doyle <[email protected]>
> Signed-off-by: Ilya Maximets <[email protected]>
> ---
Thanks for looking into this. The change looks good to me.
Acked-by: Eelco Chaudron <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev