diff options
author | miwob <wobst.michael@web.de> | 2020-09-10 14:12:38 +0200 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-09-10 13:22:42 +0100 |
commit | ff28985384cb6e60fc7479f93778c4363c322ea7 (patch) | |
tree | 695391ef7b70f862e3d0a2ad631a5f3b1b438042 /src/init.cpp | |
parent | 584a209b285638c1dcc790bba7c2732cb27f0346 (diff) |
Fix -Wclass-memaccess warning:
/anope/src/misc.cpp: In function ‘Anope::string Anope::Resolve(const Anope::string&, int)’:
/anope/src/misc.cpp:742:60: warning: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘union sockaddrs’ from an array of ‘struct sockaddr’ [-Wclass-memaccess]
memcpy(&addr, addrresult->ai_addr, addrresult->ai_addrlen);
^
In file included from /anope/include/users.h:21,
from /anope/include/bots.h:12,
from /anope/include/regchannel.h:18,
from /anope/include/config.h:16,
from /anope/src/misc.cpp:16:
/anope/include/sockets.h:27:18: note: ‘union sockaddrs’ declared here
union CoreExport sockaddrs
^~~~~~~~~
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions