OSDN Git Service

net: socket: Use convoluted tricks to silence a GCC 9 error
authorSultan Alsawaf <sultan@kerneltoast.com>
Thu, 27 Jun 2019 00:45:57 +0000 (17:45 -0700)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 17:17:34 +0000 (01:17 +0800)
commitade01274d2271bfa355663b673c538ecc389760a
treecc4f78c3b394eacfcd154250d14fc813e90eaef1
parentd84b9371fbe3681755a8041c354a4621dfec403f
net: socket: Use convoluted tricks to silence a GCC 9 error

GCC 9 is unhappy that we copy three struct's worth of data to a pointer
for a single struct. And it is rightfully unhappy, but net devs are
crazy and know better. Expand the pointer arithmetic bothering GCC to
make it shut up.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
net/socket.c