]> granicus.if.org Git - graphviz/commitdiff
acyclic: squash a -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 15:08:05 +0000 (08:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 5 Apr 2022 00:19:01 +0000 (17:19 -0700)
cmd/tools/acyclic.c

index 792630962b5d7d3a889da164342788f376123520..14a4a75152da60fe8078d36880455ca14755f83c 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <cgraph/cgraph.h>
 #include <cgraph/exit.h>
+#include <cgraph/unreachable.h>
 
 typedef struct {
     Agrec_t h;
@@ -157,6 +158,8 @@ static void init(int argc, char *argv[])
                    cmd, optopt);
            usage(-1);
            break;
+       default:
+           UNREACHABLE();
        }
     if (optind < argc) {
        inFile = openFile(argv[optind], "r");