From: Remi Gacogne Date: Mon, 19 Mar 2018 08:41:38 +0000 (+0100) Subject: dnsdist: Fix 'unreachable code' warnings reported by SonarCloud X-Git-Tag: dnsdist-1.3.0~43^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6364%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix 'unreachable code' warnings reported by SonarCloud --- diff --git a/pdns/dnsdist-snmp.cc b/pdns/dnsdist-snmp.cc index 4d3adf51a5..90cad68731 100644 --- a/pdns/dnsdist-snmp.cc +++ b/pdns/dnsdist-snmp.cc @@ -404,8 +404,9 @@ bool DNSDistSNMPAgent::sendBackendStatusChangeTrap(const std::shared_ptr& cpus) sizeof(cpuset), &cpuset); # endif -#endif /* HAVE_PTHREAD_SETAFFINITY_NP */ +#else return ENOSYS; +#endif /* HAVE_PTHREAD_SETAFFINITY_NP */ }