mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix warning: this statement may fall through
/libretroshare/src/util/dnsresolver.cc:49: warning: this statement may fall through [-Wimplicit-fallthrough=] case DNSResolver::DNS_LOOKUP_ERROR: if(it- >second.last_lookup_time + MAX_TIME_BEFORE_RETRY > now) /libretroshare/src/util/dnsresolver.cc:52: here case DNSResolver::DNS_DONT_HAVE: next_call = it->first ;
This commit is contained in:
parent
0e302e254e
commit
b11022a239
@ -48,7 +48,7 @@ void *solveDNSEntries(void *p)
|
|||||||
|
|
||||||
case DNSResolver::DNS_LOOKUP_ERROR: if(it->second.last_lookup_time + MAX_TIME_BEFORE_RETRY > now)
|
case DNSResolver::DNS_LOOKUP_ERROR: if(it->second.last_lookup_time + MAX_TIME_BEFORE_RETRY > now)
|
||||||
continue ;
|
continue ;
|
||||||
|
/* fallthrough */ //Not really, but to suppress warning.
|
||||||
case DNSResolver::DNS_DONT_HAVE: next_call = it->first ;
|
case DNSResolver::DNS_DONT_HAVE: next_call = it->first ;
|
||||||
it->second.state = DNSResolver::DNS_SEARCHING ;
|
it->second.state = DNSResolver::DNS_SEARCHING ;
|
||||||
it->second.last_lookup_time = now ;
|
it->second.last_lookup_time = now ;
|
||||||
|
Loading…
Reference in New Issue
Block a user