mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
Merge branch 'ondrej/statements-following-return-break-continue-or-goto-will-never-be-executed' into 'main'
Remove UNREACHABLE() statements after exit() See merge request isc-projects/bind9!6027
This commit is contained in:
@@ -1325,7 +1325,6 @@ dash_option(char *option, char *next, bool *open_type_class) {
|
|||||||
case 'h':
|
case 'h':
|
||||||
usage();
|
usage();
|
||||||
exit(0);
|
exit(0);
|
||||||
UNREACHABLE();
|
|
||||||
case 'i':
|
case 'i':
|
||||||
no_sigs = true;
|
no_sigs = true;
|
||||||
root_validation = false;
|
root_validation = false;
|
||||||
@@ -1336,7 +1335,6 @@ dash_option(char *option, char *next, bool *open_type_class) {
|
|||||||
case 'v':
|
case 'v':
|
||||||
printf("delv %s\n", PACKAGE_VERSION);
|
printf("delv %s\n", PACKAGE_VERSION);
|
||||||
exit(0);
|
exit(0);
|
||||||
UNREACHABLE();
|
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
@@ -58,7 +58,6 @@ fromhex(char c) {
|
|||||||
|
|
||||||
fprintf(stderr, "bad input format: %02x\n", c);
|
fprintf(stderr, "bad input format: %02x\n", c);
|
||||||
exit(3);
|
exit(3);
|
||||||
UNREACHABLE();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@@ -372,7 +372,6 @@ fromhex(char c) {
|
|||||||
|
|
||||||
printf("bad input format: %02x\n", c);
|
printf("bad input format: %02x\n", c);
|
||||||
exit(3);
|
exit(3);
|
||||||
UNREACHABLE();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -919,7 +919,6 @@ fromhex(char c) {
|
|||||||
|
|
||||||
printf("bad input format: %02x\n", c);
|
printf("bad input format: %02x\n", c);
|
||||||
exit(3);
|
exit(3);
|
||||||
UNREACHABLE();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
|
Reference in New Issue
Block a user