From b11022a239544dce100d1607b783a9f277d2e8c1 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 11:35:18 +0200 Subject: [PATCH] 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 ; --- libretroshare/src/util/dnsresolver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/util/dnsresolver.cc b/libretroshare/src/util/dnsresolver.cc index fbfac7d9c..e57d5864f 100644 --- a/libretroshare/src/util/dnsresolver.cc +++ b/libretroshare/src/util/dnsresolver.cc @@ -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 ;