From: Matthew Fernandez Date: Sat, 14 Jan 2023 23:32:18 +0000 (-0800) Subject: gv2gml initargs: squash -Wswitch-default warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1443f1d7c361f09fc3dea0856b4478893e0e2af2;p=graphviz gv2gml initargs: squash -Wswitch-default warning The default case is unreachable due to the preceding `getopt` call. --- diff --git a/cmd/tools/gv2gml.c b/cmd/tools/gv2gml.c index 2421a48be..fa6efb151 100644 --- a/cmd/tools/gv2gml.c +++ b/cmd/tools/gv2gml.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -690,6 +691,8 @@ static void initargs(int argc, char **argv) usage(1); } break; + default: + UNREACHABLE(); } }