]> granicus.if.org Git - graphviz/commitdiff
gml2gv: squash a -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 16:02:31 +0000 (09:02 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 4 Apr 2022 14:33:19 +0000 (07:33 -0700)
cmd/tools/gml2gv.c

index 829eb5631d32be93220b71c82765538283133ff6..fc46406dfb05ea114cd8860c15c7645a58374461 100644 (file)
@@ -15,6 +15,7 @@
 #include <getopt.h>
 
 #include <cgraph/exit.h>
+#include <cgraph/unreachable.h>
 
 #define N_NEW(n,t)       calloc((n),sizeof(t))
 
@@ -119,6 +120,8 @@ static void initargs(int argc, char **argv)
                        optopt);
                usage(1);
            }
+       default:
+           UNREACHABLE();
        }
     }