Merge pull request #591 from kistlin/fix/unused_variables_warnings

fix warnings about unused/maybe uninitialized variables
This commit is contained in:
AlexandreRouma
2022-01-22 04:29:00 +01:00
committed by GitHub
15 changed files with 1 additions and 35 deletions

View File

@ -107,7 +107,6 @@ namespace net {
int ret;
if (_udp) {
int fromLen = sizeof(remoteAddr);
ret = sendto(_sock, (char*)buf, count, 0, (struct sockaddr*)&remoteAddr, sizeof(remoteAddr));
if (ret <= 0) {
{
@ -470,7 +469,6 @@ namespace net {
throw std::runtime_error("Could get address from host");
return NULL;
}
uint32_t* naddr = (uint32_t*)_host->h_addr_list[0];
// Get address from remote hostname/ip
hostent* _remoteHost = gethostbyname(remoteHost.c_str());