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

index 3608e3127f7073ff38cf491a07c1c1413b562ab1..6cfaad14f718b172d2815aedc4a513b024be1490 100644 (file)
@@ -32,6 +32,7 @@ typedef struct Agnodeinfo_t {
 
 #include <ingraphs/ingraphs.h>
 #include <stdio.h>
+#include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -96,6 +97,9 @@ static void init(int argc, char *argv[])
                usage(1);
            }
            break;
+       default:
+           fprintf(stderr, "gvcolor: unexpected error\n");
+           exit(EXIT_FAILURE);
        }
     }
     argv += optind;