mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-09 11:05:07 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ void *solveDNSEntries(void *p)
|
|||
|
||||
case DNSResolver::DNS_LOOKUP_ERROR: if(it->second.last_lookup_time + MAX_TIME_BEFORE_RETRY > now)
|
||||
continue ;
|
||||
|
||||
/* fallthrough */ //Not really, but to suppress warning.
|
||||
case DNSResolver::DNS_DONT_HAVE: next_call = it->first ;
|
||||
it->second.state = DNSResolver::DNS_SEARCHING ;
|
||||
it->second.last_lookup_time = now ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue