]> 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 09:08:39 +0000 (10:08 +0100)
Couple of UNREACHABLE() statements following exit() were found and
removed.

(cherry picked from commit 81fdc4a8220d7c5a86bf6df4972e795ebf68b884)

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

index d1ef0fa1faa36c13fc672fc8ddb5e84280e4b640..f4c7c015ddec18ff89d13a83a0ca89825e18c1fd 100644 (file)
@@ -1332,7 +1332,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;
@@ -1343,7 +1342,6 @@ dash_option(char *option, char *next, bool *open_type_class) {
                case 'v':
                        fputs("delv " VERSION "\n", stderr);
                        exit(0);
-                       UNREACHABLE();
                default:
                        UNREACHABLE();
                }
index 31640b5e1688ada1c24c1bc423a246f76c3980c6..310356b8e750be3c68ed6c2d1ea1f38c696f4c23 100644 (file)
@@ -58,7 +58,6 @@ fromhex(char c) {
 
        fprintf(stderr, "bad input format: %02x\n", c);
        exit(3);
-       UNREACHABLE();
 }
 
 static void
index 77045be1719b882afb2a5f8221cb39cd592962b2..35cd82f00c3adb872f7b97be575dd82237a72be5 100644 (file)
@@ -383,7 +383,6 @@ fromhex(char c) {
 
        printf("bad input format: %02x\n", c);
        exit(3);
-       UNREACHABLE();
 }
 
 /*
index 0ee66964c95a08a43ab70095962b7e924a629342..350d9a85780d604c14a476e8950ded21080db052 100644 (file)
@@ -955,7 +955,6 @@ fromhex(char c) {
 
        printf("bad input format: %02x\n", c);
        exit(3);
-       UNREACHABLE();
 }
 
 isc_result_t