Suppress warning on uninitialized variable use by initializing variable.

This commit is contained in:
Phillip Mienk 2016-10-31 12:25:30 -07:00
parent fb59cd1aad
commit 28fbee74c8

View File

@ -182,7 +182,7 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
{
// Get the addresses.
ifaddrs *ifa = NULL;
int rc;
int rc = 0;
const int max_attempts = 10;
const int backoff_msec = 1;
for (int i = 0; i < max_attempts; i++) {