From: Matthew Fernandez Date: Sat, 14 Jan 2023 23:32:18 +0000 (-0800) Subject: tred init: squash -Wswitch-default warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1584c52a1da74e51cd5843e19a9555d84bac42e2;p=graphviz tred init: squash -Wswitch-default warning The default case is unreachable due to the preceding `getopt` call. --- diff --git a/cmd/tools/tred.c b/cmd/tools/tred.c index a860f2ee1..5ac9bd5eb 100644 --- a/cmd/tools/tred.c +++ b/cmd/tools/tred.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -210,6 +211,8 @@ static void init(int argc, char *argv[]) usage(1); } break; + default: + UNREACHABLE(); } } argv += optind;