From: Matthew Fernandez Date: Sat, 14 Jan 2023 23:32:18 +0000 (-0800) Subject: graphml2gv initargs: squash -Wswitch-default warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95f4f7e905c677be8159df042987503c7d341634;p=graphviz graphml2gv initargs: squash -Wswitch-default warning The default case is unreachable due to the preceding `getopt` call. --- diff --git a/cmd/tools/graphml2gv.c b/cmd/tools/graphml2gv.c index ed34cd9b7..7b11ef806 100644 --- a/cmd/tools/graphml2gv.c +++ b/cmd/tools/graphml2gv.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -465,6 +466,9 @@ static void initargs(int argc, char **argv) optopt); usage(1); } + break; + default: + UNREACHABLE(); } }