make: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[1]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 3%] Built target libhamcore
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 6%] Built target hamcorebuilder
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 7%] Built target hamcore-archive-build
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
Scanning dependencies of target cedar
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 7%] Building C object src/Cedar/CMakeFiles/cedar.dir/Account.c.o
[ 8%] Building C object src/Cedar/CMakeFiles/cedar.dir/Admin.c.o
[ 9%] Building C object src/Cedar/CMakeFiles/cedar.dir/AzureClient.c.o
[ 10%] Building C object src/Cedar/CMakeFiles/cedar.dir/AzureServer.c.o
[ 11%] Building C object src/Cedar/CMakeFiles/cedar.dir/Bridge.c.o
[ 12%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeUnix.c.o
[ 12%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeWin32.c.o
[ 13%] Building C object src/Cedar/CMakeFiles/cedar.dir/CM.c.o
[ 14%] Building C object src/Cedar/CMakeFiles/cedar.dir/Cedar.c.o
[ 15%] Building C object src/Cedar/CMakeFiles/cedar.dir/CedarPch.c.o
[ 16%] Building C object src/Cedar/CMakeFiles/cedar.dir/Client.c.o
[ 17%] Building C object src/Cedar/CMakeFiles/cedar.dir/Command.c.o
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c: In function ‘CheckThread1’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:278:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
278 | InputToNull((void *)check_thread_global_1);
| ^
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c: In function ‘CheckMemory’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:568:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
568 | InputToNull((void *)(UINT)(((UCHAR *)pp[i])[j] = j % 256));
| ^
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c: In function ‘StrToPortList’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:7855:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
7855 | if (IsInList(o, (void *)n))
| ^
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:7861:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
7861 | Add(o, (void *)n);
| ^
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c: In function ‘PsClusterSettingMember’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:7938:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
7938 | t.Ports[i] = (UINT)LIST_DATA(ports, i);
| ^
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c: In function ‘CmdEvalHostAndPort’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8010:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
8010 | ret = ParseHostPort(tmp, NULL, NULL, (UINT)param);
| ^
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c: In function ‘PsWgkEnum’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:10676:26: warning: passing argument 1 of ‘CopyStrToUni’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
10676 | key = CopyStrToUni(wgk->Key);
| ~~~^~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29: note: expected ‘char *’ but argument is of type ‘const char *’
69 | wchar_t *CopyStrToUni(char *str);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:10677:26: warning: passing argument 1 of ‘CopyStrToUni’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
10677 | hub = CopyStrToUni(wgk->Hub);
| ~~~^~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29: note: expected ‘char *’ but argument is of type ‘const char *’
69 | wchar_t *CopyStrToUni(char *str);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:10678:27: warning: passing argument 1 of ‘CopyStrToUni’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
10678 | user = CopyStrToUni(wgk->User);
| ~~~^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29: note: expected ‘char *’ but argument is of type ‘const char *’
69 | wchar_t *CopyStrToUni(char *str);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c: In function ‘PsPortsUDPSet’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:22757:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
22757 | t.Ports[i] = (UINT)LIST_DATA(ports, i);
| ^
[ 17%] Building C object src/Cedar/CMakeFiles/cedar.dir/Connection.c.o
[ 18%] Building C object src/Cedar/CMakeFiles/cedar.dir/Console.c.o
[ 19%] Building C object src/Cedar/CMakeFiles/cedar.dir/DDNS.c.o
[ 20%] Building C object src/Cedar/CMakeFiles/cedar.dir/Database.c.o
[ 21%] Building C object src/Cedar/CMakeFiles/cedar.dir/EM.c.o
[ 22%] Building C object src/Cedar/CMakeFiles/cedar.dir/EtherLog.c.o
[ 22%] Building C object src/Cedar/CMakeFiles/cedar.dir/Hub.c.o
[ 23%] Building C object src/Cedar/CMakeFiles/cedar.dir/IPC.c.o
[ 24%] Building C object src/Cedar/CMakeFiles/cedar.dir/Layer3.c.o
[ 25%] Building C object src/Cedar/CMakeFiles/cedar.dir/Link.c.o
[ 26%] Building C object src/Cedar/CMakeFiles/cedar.dir/Listener.c.o
[ 27%] Building C object src/Cedar/CMakeFiles/cedar.dir/Logging.c.o
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Logging.c: In function ‘PacketLogParseProc’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Logging.c:1576:32: warning: taking address of packed member of ‘struct PKT’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1576 | ICMPV6_HEADER_INFO *icmp = &p->ICMPv6HeaderPacketInfo;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
[ 28%] Building C object src/Cedar/CMakeFiles/cedar.dir/NM.c.o
[ 28%] Building C object src/Cedar/CMakeFiles/cedar.dir/Nat.c.o
[ 29%] Building C object src/Cedar/CMakeFiles/cedar.dir/NativeStack.c.o
[ 30%] Building C object src/Cedar/CMakeFiles/cedar.dir/NullLan.c.o
[ 31%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto.c.o
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c: In function ‘ProtoLog’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:20:29: warning: passing argument 1 of ‘CopyStrToUni’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
20 | proto_name = CopyStrToUni(session->Impl->Name());
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29: note: expected ‘char *’ but argument is of type ‘const char *’
69 | wchar_t *CopyStrToUni(char *str);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c: In function ‘ProtoContainerCompare’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:72:28: warning: passing argument 1 of ‘StrCmpi’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
72 | return StrCmpi(container_1->Name, container_2->Name);
| ~~~~~~~~~~~^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:39:19: note: expected ‘char *’ but argument is of type ‘const char *’
39 | int StrCmpi(char *str1, char *str2);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:72:47: warning: passing argument 2 of ‘StrCmpi’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
72 | return StrCmpi(container_1->Name, container_2->Name);
| ~~~~~~~~~~~^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:39:31: note: expected ‘char *’ but argument is of type ‘const char *’
39 | int StrCmpi(char *str1, char *str2);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c: In function ‘ProtoSessionNew’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:407:26: warning: passing argument 2 of ‘CopyIP’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
407 | CopyIP(&session->SrcIp, src_ip);
| ^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:270,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Network.h:1266:26: note: expected ‘IP *’ but argument is of type ‘const IP *’
1266 | void CopyIP(IP *dst, IP *src);
| ~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:409:26: warning: passing argument 2 of ‘CopyIP’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
409 | CopyIP(&session->DstIp, dst_ip);
| ^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:270,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Network.h:1266:26: note: expected ‘IP *’ but argument is of type ‘const IP *’
1266 | void CopyIP(IP *dst, IP *src);
| ~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c: In function ‘ProtoSetListenIP’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:458:38: warning: passing argument 2 of ‘Copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
458 | Copy(&proto->UdpListener->ListenIP, ip, sizeof(proto->UdpListener->ListenIP));
| ^~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28: note: expected ‘void *’ but argument is of type ‘const IP *’
182 | void Copy(void *dst, void *src, UINT size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c: In function ‘ProtoHandleConnection’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:513:19: warning: passing argument 1 of ‘StrCmp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
513 | if (StrCmp(tmp->Name, protocol) == 0)
| ~~~^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:18: note: expected ‘char *’ but argument is of type ‘const char * const’
38 | int StrCmp(char *str1, char *str2);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:513:27: warning: passing argument 2 of ‘StrCmp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
513 | if (StrCmp(tmp->Name, protocol) == 0)
| ^~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:30: note: expected ‘char *’ but argument is of type ‘const char *’
38 | int StrCmp(char *str1, char *str2);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:558:38: warning: passing argument 1 of ‘CopyStrToUni’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
558 | proto_name = CopyStrToUni(container->Name);
| ~~~~~~~~~^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29: note: expected ‘char *’ but argument is of type ‘const char * const’
69 | wchar_t *CopyStrToUni(char *str);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:651:38: warning: passing argument 1 of ‘CopyStrToUni’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
651 | wchar_t *proto_name = CopyStrToUni(impl->Name());
| ^~~~~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29: note: expected ‘char *’ but argument is of type ‘const char *’
69 | wchar_t *CopyStrToUni(char *str);
| ~~~~~~^~~
[ 32%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_EtherIP.c.o
[ 33%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IKE.c.o
[ 33%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IPsec.c.o
[ 34%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IkePacket.c.o
[ 35%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_L2TP.c.o
[ 36%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_OpenVPN.c.o
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_OpenVPN.c: In function ‘OvsIsPacketForMe’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_OpenVPN.c:90:43: warning: passing argument 1 of ‘OvsParsePacket’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
90 | OPENVPN_PACKET *packet = OvsParsePacket(data, size);
| ^~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Cedar/Cedar.h:1040,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:19,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_OpenVPN.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Cedar/Proto_OpenVPN.h:233:39: note: expected ‘UCHAR *’ {aka ‘unsigned char *’} but argument is of type ‘const void *’
233 | OPENVPN_PACKET *OvsParsePacket(UCHAR *data, UINT size);
| ~~~~~~~^~~~
[ 37%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_PPP.c.o
[ 38%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_SSTP.c.o
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c: In function ‘NewSstpServer’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:1013:55: warning: passing argument 3 of ‘StrCpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1013 | StrCpy(s->ClientHostName, sizeof(s->ClientHostName), hostname);
| ^~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41: note: expected ‘char *’ but argument is of type ‘const char *’
30 | UINT StrCpy(char *dst, UINT size, char *src);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:1014:59: warning: passing argument 3 of ‘StrCpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1014 | StrCpy(s->ClientCipherName, sizeof(s->ClientCipherName), cipher);
| ^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41: note: expected ‘char *’ but argument is of type ‘const char *’
30 | UINT StrCpy(char *dst, UINT size, char *src);
| ~~~~~~^~~
[ 38%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_Win7.c.o
[ 39%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_WireGuard.c.o
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsOptionStringValue’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:46:13: warning: passing argument 1 of ‘StrCmp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
46 | if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0)
| ^~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:18: note: expected ‘char *’ but argument is of type ‘const char *’
38 | int StrCmp(char *str1, char *str2);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:46:50: warning: passing argument 1 of ‘StrCmp’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
46 | if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0)
| ^~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:18: note: expected ‘char *’ but argument is of type ‘const char *’
38 | int StrCmp(char *str1, char *str2);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsProcessDatagrams’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:238:28: warning: passing argument 2 of ‘Copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
238 | Copy(&session->IPLocal, &packet->DstIP, sizeof(session->IPLocal));
| ^~~~~~~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28: note: expected ‘void *’ but argument is of type ‘const IP *’
182 | void Copy(void *dst, void *src, UINT size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:239:29: warning: passing argument 2 of ‘Copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
239 | Copy(&session->IPRemote, &packet->SrcIP, sizeof(session->IPRemote));
| ^~~~~~~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28: note: expected ‘void *’ but argument is of type ‘const IP *’
182 | void Copy(void *dst, void *src, UINT size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsDetectMessageType’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:402:27: warning: passing argument 1 of ‘IsZero’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
402 | if (IsZero(packet->Header.Reserved, sizeof(packet->Header.Reserved)) == false)
| ~~~~~~~~~~~~~~^~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:344:19: note: expected ‘void *’ but argument is of type ‘const BYTE *’ {aka ‘const unsigned char *’}
344 | bool IsZero(void *data, UINT size);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsMSS’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:425:12: warning: passing argument 1 of ‘IsIP4’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
425 | if (IsIP4(&session->IPRemote))
| ^~~~~~~~~~~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:270,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Network.h:1268:16: note: expected ‘IP *’ but argument is of type ‘const IP *’
1268 | bool IsIP4(IP *ip);
| ~~~~^~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsIPCNew’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:465:53: warning: passing argument 3 of ‘StrCpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
465 | StrCpy(param.ClientName, sizeof(param.ClientName), WgsName());
| ^~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41: note: expected ‘char *’ but argument is of type ‘const char *’
30 | UINT StrCpy(char *dst, UINT size, char *src);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsCreateTransportData’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:824:32: warning: passing argument 2 of ‘Copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
824 | Copy(ret->EncapsulatedPacket, data, size);
| ^~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28: note: expected ‘void *’ but argument is of type ‘const void *’
182 | void Copy(void *dst, void *src, UINT size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsEncryptData’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:929:42: warning: passing argument 2 of ‘Copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
929 | Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter));
| ^~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28: note: expected ‘void *’ but argument is of type ‘const UINT64 *’ {aka ‘const long unsigned int *’}
182 | void Copy(void *dst, void *src, UINT size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsDecryptData’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:947:42: warning: passing argument 2 of ‘Copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
947 | Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter));
| ^~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28: note: expected ‘void *’ but argument is of type ‘const UINT64 *’ {aka ‘const long unsigned int *’}
182 | void Copy(void *dst, void *src, UINT size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsEphemeral’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1000:22: warning: passing argument 2 of ‘Copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1000 | Copy(ephemeral_dst, ephemeral_src, WG_KEY_SIZE);
| ^~~~~~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28: note: expected ‘void *’ but argument is of type ‘const BYTE *’ {aka ‘const unsigned char *’}
182 | void Copy(void *dst, void *src, UINT size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c: In function ‘WgsHKDF’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1011:15: warning: passing argument 2 of ‘SetMdKey’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1011 | SetMdKey(md, chaining_key, WG_HASH_SIZE);
| ^~~~~~~~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:252,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Encrypt.h:433:29: note: expected ‘void *’ but argument is of type ‘const BYTE *’ {aka ‘const unsigned char *’}
433 | bool SetMdKey(MD *md, void *key, UINT key_size);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1014:24: warning: passing argument 3 of ‘MdProcess’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1014 | MdProcess(md, secret, data, data_size);
| ^~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:252,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Encrypt.h:434:42: note: expected ‘void *’ but argument is of type ‘const BYTE *’ {aka ‘const unsigned char *’}
434 | UINT MdProcess(MD *md, void *dest, void *src, UINT size);
| ~~~~~~^~~
[ 40%] Building C object src/Cedar/CMakeFiles/cedar.dir/Protocol.c.o
[ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/Radius.c.o
[ 42%] Building C object src/Cedar/CMakeFiles/cedar.dir/Remote.c.o
[ 43%] Building C object src/Cedar/CMakeFiles/cedar.dir/SM.c.o
[ 43%] Building C object src/Cedar/CMakeFiles/cedar.dir/SW.c.o
[ 44%] Building C object src/Cedar/CMakeFiles/cedar.dir/Sam.c.o
[ 45%] Building C object src/Cedar/CMakeFiles/cedar.dir/SeLowUser.c.o
[ 46%] Building C object src/Cedar/CMakeFiles/cedar.dir/SecureInfo.c.o
[ 47%] Building C object src/Cedar/CMakeFiles/cedar.dir/SecureNAT.c.o
[ 48%] Building C object src/Cedar/CMakeFiles/cedar.dir/Server.c.o
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c: In function ‘SiLoadConfigurationCfg’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:2751:35: warning: passing argument 2 of ‘CfgGetFolder’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
2751 | FOLDER *f = CfgGetFolder(f9, name);
| ^~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:264,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Cfg.h:98:44: note: expected ‘char *’ but argument is of type ‘const char *’
98 | FOLDER *CfgGetFolder(FOLDER *parent, char *name);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:2755:42: warning: passing argument 3 of ‘StrCpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
2755 | StrCpy(wgk->Key, sizeof(wgk->Key), name);
| ^~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41: note: expected ‘char *’ but argument is of type ‘const char *’
30 | UINT StrCpy(char *dst, UINT size, char *src);
| ~~~~~~^~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c: In function ‘SiLoadProtoCfg’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:6342:41: warning: passing argument 2 of ‘CfgGetFolder’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
6342 | FOLDER *ff = CfgGetFolder(f, container->Name);
| ~~~~~~~~~^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:264,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Cfg.h:98:44: note: expected ‘char *’ but argument is of type ‘const char * const’
98 | FOLDER *CfgGetFolder(FOLDER *parent, char *name);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c: In function ‘SiWriteProtoCfg’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:6396:44: warning: passing argument 2 of ‘CfgCreateFolder’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
6396 | FOLDER *ff = CfgCreateFolder(f, container->Name);
| ~~~~~~~~~^~~~~~
In file included from /home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:264,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18,
from /home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8:
/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Cfg.h:84:47: note: expected ‘char *’ but argument is of type ‘const char * const’
84 | FOLDER *CfgCreateFolder(FOLDER *parent, char *name);
| ~~~~~~^~~~
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c: In function ‘SiCalledDeleteIpTable’:
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:7697:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
7697 | if (IsInList(h->IpTable, (void *)key))
| ^
/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:7699:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
7699 | IP_TABLE_ENTRY *e = (IP_TABLE_ENTRY *)key;
| ^
[ 49%] Building C object src/Cedar/CMakeFiles/cedar.dir/Session.c.o
[ 49%] Building C object src/Cedar/CMakeFiles/cedar.dir/UT.c.o
[ 50%] Building C object src/Cedar/CMakeFiles/cedar.dir/UdpAccel.c.o
[ 51%] Building C object src/Cedar/CMakeFiles/cedar.dir/VG.c.o
[ 52%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLan.c.o
[ 53%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanUnix.c.o
[ 54%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanWin32.c.o
[ 54%] Building C object src/Cedar/CMakeFiles/cedar.dir/Virtual.c.o
[ 55%] Building C object src/Cedar/CMakeFiles/cedar.dir/WaterMark.c.o
[ 56%] Building C object src/Cedar/CMakeFiles/cedar.dir/WebUI.c.o
[ 57%] Building C object src/Cedar/CMakeFiles/cedar.dir/WinUi.c.o
[ 58%] Building C object src/Cedar/CMakeFiles/cedar.dir/Wpc.c.o
[ 59%] Building C object src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o
[ 59%] Linking C shared library ../../libcedar.so
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 59%] Built target cedar
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 70%] Built target cpu_features
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 89%] Built target mayaqua
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 91%] Built target list_cpu_features
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 92%] Linking C executable ../../vpnserver
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 93%] Built target vpnserver
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 93%] Linking C executable ../../vpnclient
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 94%] Built target vpnclient
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 95%] Linking C executable ../../vpnbridge
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 96%] Built target vpnbridge
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 97%] Linking C executable ../../vpncmd
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 98%] Built target vpncmd
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build'
[ 99%] Linking C executable ../../vpntest
make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
[100%] Built target vpntest
make[1]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'
make: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build'