From: Ondřej Surý Date: Fri, 25 Mar 2022 08:25:11 +0000 (+0100) Subject: Remove UNREACHABLE() statements after exit() X-Git-Tag: v9.19.0~47^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81fdc4a8220d7c5a86bf6df4972e795ebf68b884;p=thirdparty%2Fbind9.git Remove UNREACHABLE() statements after exit() Couple of UNREACHABLE() statements following exit() were found and removed. --- diff --git a/bin/delv/delv.c b/bin/delv/delv.c index 486370e64d1..dc87d1f4c19 100644 --- a/bin/delv/delv.c +++ b/bin/delv/delv.c @@ -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(); } diff --git a/bin/tests/wire_test.c b/bin/tests/wire_test.c index 88bf3190d6b..5dcc0951f7d 100644 --- a/bin/tests/wire_test.c +++ b/bin/tests/wire_test.c @@ -58,7 +58,6 @@ fromhex(char c) { fprintf(stderr, "bad input format: %02x\n", c); exit(3); - UNREACHABLE(); } static void diff --git a/lib/dns/tests/dnstest.c b/lib/dns/tests/dnstest.c index e3da9d47856..30b967dacbe 100644 --- a/lib/dns/tests/dnstest.c +++ b/lib/dns/tests/dnstest.c @@ -372,7 +372,6 @@ fromhex(char c) { printf("bad input format: %02x\n", c); exit(3); - UNREACHABLE(); } /* diff --git a/lib/ns/tests/nstest.c b/lib/ns/tests/nstest.c index 8158a15aee7..f1c1545f96b 100644 --- a/lib/ns/tests/nstest.c +++ b/lib/ns/tests/nstest.c @@ -919,7 +919,6 @@ fromhex(char c) { printf("bad input format: %02x\n", c); exit(3); - UNREACHABLE(); } isc_result_t