From d3727a52d7c9c44d3483b019e0f5bc9f06899b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 25 Mar 2022 09:25:11 +0100 Subject: [PATCH] Remove UNREACHABLE() statements after exit() Couple of UNREACHABLE() statements following exit() were found and removed. (cherry picked from commit 81fdc4a8220d7c5a86bf6df4972e795ebf68b884) --- bin/delv/delv.c | 2 -- bin/tests/wire_test.c | 1 - lib/dns/tests/dnstest.c | 1 - lib/ns/tests/nstest.c | 1 - 4 files changed, 5 deletions(-) diff --git a/bin/delv/delv.c b/bin/delv/delv.c index 182448a0b8..1fcfa6235d 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': fprintf(stderr, "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 88bf3190d6..5dcc0951f7 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 e3da9d4785..30b967dacb 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 a114dff963..601626cbc6 100644 --- a/lib/ns/tests/nstest.c +++ b/lib/ns/tests/nstest.c @@ -920,7 +920,6 @@ fromhex(char c) { printf("bad input format: %02x\n", c); exit(3); - UNREACHABLE(); } isc_result_t