mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 02:25:24 +02:00
Merge pull request #591 from kistlin/fix/unused_variables_warnings
fix warnings about unused/maybe uninitialized variables
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user