mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Add fallback to ns_client_get_type despite unreachable
GCC might fail to compile because it expects a return after UNREACHABLE. It should ideally just work anyway since UNREACHABLE is either a noreturn or UB (__builtin_unreachable / C23 unreachable). Either way, it should be optimized almost always so the fallback is free or basically free anyway when it isn't optimized out.
This commit is contained in:
parent
4a3f7fe1ef
commit
b5478654a2
@ -155,6 +155,8 @@ ns_client_transport_type(const ns_client_t *client) {
|
||||
case isc_nm_nonesocket:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
return DNS_TRANSPORT_UDP;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user