From: Matthew Fernandez Date: Sat, 14 Jan 2023 23:32:18 +0000 (-0800) Subject: bcomps init: squash -Wswitch-default warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1630895ac6f9017567c6d50c19c30fdd15a3a2eb;p=graphviz bcomps init: squash -Wswitch-default warning The default case is unreachable due to the preceding `getopt` call. --- diff --git a/cmd/tools/bcomps.c b/cmd/tools/bcomps.c index fb3c573b2..8312121a1 100644 --- a/cmd/tools/bcomps.c +++ b/cmd/tools/bcomps.c @@ -33,6 +33,7 @@ #include #include #include +#include typedef struct { Agrec_t h; @@ -341,6 +342,8 @@ static void init(int argc, char *argv[]) usage(1); } break; + default: + UNREACHABLE(); } } argv += optind;