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

index 8f4a352e105d018c069ab337c1799c97c4903241..7b5d714dadd38c5d7222b5196c4a8654ad9ecc7c 100644 (file)
@@ -15,8 +15,8 @@
 
 #include "config.h"
 
-#include <stddef.h>
 #include <stdio.h>
+#include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -129,6 +129,9 @@ static void init(int argc, char *argv[])
                usage(1);
            }
            break;
+       default:
+           fprintf(stderr, "gc: unexpected error\n");
+           exit(EXIT_FAILURE);
        }
     }
     argv += optind;