]> granicus.if.org Git - graphviz/commitdiff
cvtgxl: squash a -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 17 Sep 2021 03:43:43 +0000 (20:43 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 23:21:06 +0000 (16:21 -0700)
cmd/tools/cvtgxl.c

index dac62cc0252742bb1b57facf803eea0d501290ef..06598eceb42984a577849a27ba0362381df0b26e 100644 (file)
@@ -17,7 +17,8 @@
 
 #include <ctype.h>
 #include <getopt.h>
-#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
 
 #include "convert.h"
 #include <ingraphs/ingraphs.h>
@@ -157,6 +158,10 @@ static void initargs(int argc, char **argv)
                        optopt);
                exit(1);
            }
+           break;
+       default:
+           fprintf(stderr, "cvtgxl: unexpected error\n");
+           exit(EXIT_FAILURE);
        }
     }