Net_copy_uint32() uses memcpy() under the hood, so there's no need to specify "to" and "from" parameters as uint32_t * and place stricter alignment requirements than necessary. GCC9 generates a couple of -Waddress-of-packed-member warnings here otherwise. Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- include/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net.h b/include/net.h index 6912a557b5..3491425e09 100644 --- a/include/net.h +++ b/include/net.h @@ -315,7 +315,7 @@ static inline void net_copy_ip(void *to, void *from) } /* copy ulong */ -static inline void net_copy_uint32(uint32_t *to, uint32_t *from) +static inline void net_copy_uint32(void *to, void *from) { memcpy(to, from, sizeof(uint32_t)); } -- 2.21.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox