summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2019-07-14 22:02:13 +0200
committerJoe Hershberger <[email protected]>2019-07-18 16:37:13 -0500
commitbbfc562719c463ba6e7b03125aedd5720a325d2d (patch)
tree6acf98213644a6ea5c732205f3f2318a06d58533 /scripts
parent69fbf238c194960af383d902e9344a7602423c89 (diff)
net: unaligned copying of unsigned long
The inline functions net_read_u32() and net_copy_u32() have been created to copy unaligned u32. But this is not obvious to the compiler. GCC 9.1 introduces a check -Werror=address-of-packed-member which leads to a build error on Travis CI: net/bootp.c: In function ‘dhcp_send_request_packet’: net/bootp.c:1011:27: error: taking address of packed member of ‘struct bootp_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 1011 | net_copy_u32(&bp->bp_id, &bp_offer->bp_id); Change the type of the function parameters to void * to avoid the build error. Reported-by: Ramon Fried <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]> Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions