mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -155,6 +155,8 @@ ns_client_transport_type(const ns_client_t *client) {
|
|||
case isc_nm_nonesocket:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
return DNS_TRANSPORT_UDP;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue