I hope compilers are smart enough to see that the bottom of the function cannot be reached
(clang is happy with the missing return).
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
}
} while (true);
- return 0;
+ // NOTREACHED
}
template class NetmaskTree<bool, Netmask>;
itf = Interface{ parts.at(1), idx };
}
- AddressAndInterface tmp{ComboAddress{addr}, itf};
+ AddressAndInterface tmp{ComboAddress{addr}, std::move(itf)};
if (tmp.d_address.isIPv4()) {
g_localQueryAddresses4.emplace_back(std::move(tmp));
continue;