]> granicus.if.org Git - graphviz/commitdiff
gvpr getval: squash a -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 03:40:24 +0000 (20:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 9 Sep 2022 14:45:06 +0000 (07:45 -0700)
This switch is exhaustive.

lib/gvpr/compile.c

index 42768a386e8ad7257f86093d9d1d786d950a37d4..4b3502809f49388b405788914257fd667c9b8d5f 100644 (file)
@@ -24,6 +24,7 @@
 #include <cgraph/cgraph.h>
 #include <cgraph/exit.h>
 #include <cgraph/itos.h>
+#include <cgraph/unreachable.h>
 #include <ast/error.h>
 #include <gvpr/actions.h>
 #include <ast/sfstr.h>
@@ -878,6 +879,8 @@ getval(Expr_t * pgm, Exnode_t * node, Exid_t * sym, Exref_t * ref,
                case AGOUTEDGE :
                    v.string = "E";
                    break;
+               default:
+                   UNREACHABLE();
            }
            break;
        case F_edge: