]> granicus.if.org Git - graphviz/commitdiff
dot_begin_graph: squash -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Nov 2021 01:20:19 +0000 (17:20 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 15 Nov 2021 15:54:17 +0000 (07:54 -0800)
plugin/core/gvrender_core_dot.c

index 99e8adfa63b51405241ceef7cc0e665a8a62937d..0b1c7e28911e66ded828b14733d23656757bfe56 100644 (file)
@@ -27,6 +27,7 @@
 #include <gvc/gvplugin_render.h>
 #include <gvc/gvplugin_device.h>
 #include <cgraph/agxbuf.h>
+#include <cgraph/unreachable.h>
 #include <common/utils.h>
 #include <gvc/gvc.h>
 #include <gvc/gvio.h>
@@ -482,6 +483,8 @@ static void dot_begin_graph(GVJ_t *job)
            attach_attrs_and_arrows(g, &s_arrows, &e_arrows);
            xdot_begin_graph(g, s_arrows, e_arrows, job->render.id);
            break;
+       default:
+           UNREACHABLE();
     }
 }