From 99be0a4371172f6fd1c432b0138384e83d6e5b81 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 19 Mar 2018 09:41:38 +0100 Subject: [PATCH] dnsdist: Fix 'unreachable code' warnings reported by SonarCloud --- pdns/dnsdist-snmp.cc | 9 ++++++--- pdns/misc.cc | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) 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 */ } -- 2.47.2