]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove UNREACHABLE() statements after exit()
authorOndřej Surý <ondrej@isc.org>
Fri, 25 Mar 2022 08:25:11 +0000 (09:25 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 25 Mar 2022 08:25:11 +0000 (09:25 +0100)
Couple of UNREACHABLE() statements following exit() were found and
removed.

bin/delv/delv.c
bin/tests/wire_test.c
lib/dns/tests/dnstest.c
lib/ns/tests/nstest.c

index 486370e64d1fa8f6c8b45a280ca186647d084e5f..dc87d1f4c1941981da8ad9ba946e634cf2b2f956 100644 (file)
@@ -1325,7 +1325,6 @@ dash_option(char *option, char *next, bool *open_type_class) {
                case 'h':
                        usage();
                        exit(0);
-                       UNREACHABLE();
                case 'i':
                        no_sigs = true;
                        root_validation = false;
@@ -1336,7 +1335,6 @@ dash_option(char *option, char *next, bool *open_type_class) {
                case 'v':
                        printf("delv %s\n", PACKAGE_VERSION);
                        exit(0);
-                       UNREACHABLE();
                default:
                        UNREACHABLE();
                }
index 88bf3190d6bcbc8d01aed7c32cc47a91f0f0f7c0..5dcc0951f7dee347c75de49f5f3140e8947aa5d8 100644 (file)
@@ -58,7 +58,6 @@ fromhex(char c) {
 
        fprintf(stderr, "bad input format: %02x\n", c);
        exit(3);
-       UNREACHABLE();
 }
 
 static void
index e3da9d4785641ea51a7106892c8e3b834003aa63..30b967dacbef5b063646213e59f0359c03b1f743 100644 (file)
@@ -372,7 +372,6 @@ fromhex(char c) {
 
        printf("bad input format: %02x\n", c);
        exit(3);
-       UNREACHABLE();
 }
 
 /*
index 8158a15aee7f1604f89b0a65f76f5718caa46219..f1c1545f96ba6f434b253a851d0ad97cfd68734b 100644 (file)
@@ -919,7 +919,6 @@ fromhex(char c) {
 
        printf("bad input format: %02x\n", c);
        exit(3);
-       UNREACHABLE();
 }
 
 isc_result_t