mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Consistenly use UNREACHABLE() instead of ISC_UNREACHABLE()
In couple places, we have missed INSIST(0) or ISC_UNREACHABLE() replacement on some branches with UNREACHABLE(). Replace all ISC_UNREACHABLE() or INSIST(0) calls with UNREACHABLE().
This commit is contained in:
@@ -2273,7 +2273,7 @@ isc__nm_process_sock_buffer(isc_nmsocket_t *sock) {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
INSIST(0);
|
||||
UNREACHABLE();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2799,7 +2799,6 @@ isc__nmsocket_reset(isc_nmsocket_t *sock) {
|
||||
REQUIRE(sock->parent == NULL);
|
||||
break;
|
||||
default:
|
||||
INSIST(0);
|
||||
UNREACHABLE();
|
||||
break;
|
||||
}
|
||||
@@ -3493,7 +3492,6 @@ isc_nm_set_maxage(isc_nmhandle_t *handle, const uint32_t ttl) {
|
||||
case isc_nm_tlssocket:
|
||||
#endif /* HAVE_LIBNGHTTP2 */
|
||||
default:
|
||||
INSIST(0);
|
||||
UNREACHABLE();
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user