From: Matthew Fernandez Date: Sat, 14 Jan 2023 23:32:18 +0000 (-0800) Subject: sccmap scanArgs: squash -Wswitch-default warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6f9bd3b43cb114d84b16e6ea349e5e121594368;p=graphviz sccmap scanArgs: squash -Wswitch-default warning The default case is unreachable due to the preceding `getopt` call. --- diff --git a/cmd/tools/sccmap.c b/cmd/tools/sccmap.c index 2387bb3ce..9e69c7e83 100644 --- a/cmd/tools/sccmap.c +++ b/cmd/tools/sccmap.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -302,6 +303,8 @@ static void scanArgs(int argc, char **argv) usage(1); } break; + default: + UNREACHABLE(); } } argv += optind;