]> granicus.if.org Git - graphviz/commitdiff
emit_xdot: squash a -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Jun 2022 17:28:16 +0000 (10:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Jun 2022 17:28:16 +0000 (10:28 -0700)
This switch is exhaustive.

lib/common/emit.c

index 281a8eb8ac06bd1e3141e7ce4c9acbfc0453ccdc..261aefb49f2e89b7d90c05059f831b109f0d889e 100644 (file)
@@ -21,6 +21,7 @@
 #include <math.h>
 #include <common/render.h>
 #include <cgraph/agxbuf.h>
+#include <cgraph/unreachable.h>
 #include <common/htmltable.h>
 #include <gvc/gvc.h>
 #include <cdt/cdt.h>
@@ -1576,6 +1577,8 @@ static void emit_xdot (GVJ_t * job, xdot* xd)
                image_warn = 0;
            }
            break;
+       default:
+           UNREACHABLE();
        }
        op++;
     }