From: Matthew Fernandez Date: Thu, 28 Jul 2022 02:07:24 +0000 (-0700) Subject: gvpr copy: squash a -Wswitch-default warning X-Git-Tag: 5.0.1~25^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0877687c97a9551c26bc131ec5b33271d190df1;p=graphviz gvpr copy: squash a -Wswitch-default warning This switch is exhaustive. --- diff --git a/lib/gvpr/actions.c b/lib/gvpr/actions.c index 6528d0421..ad44a084f 100644 --- a/lib/gvpr/actions.c +++ b/lib/gvpr/actions.c @@ -25,6 +25,7 @@ #include #include #include +#include #define KINDS(p) ((AGTYPE(p) == AGRAPH) ? "graph" : (AGTYPE(p) == AGNODE) ? "node" : "edge") @@ -200,6 +201,8 @@ Agobj_t *copy(Agraph_t * g, Agobj_t * obj) name = agnameof (AGMKOUT(e)); nobj = (Agobj_t *) openEdge(g, t, h, name); break; + default: + UNREACHABLE(); } if (nobj) copyAttr(obj, nobj);