From 2a30b8ad725d1e108b8287ce0717562ac97f41e5 Mon Sep 17 00:00:00 2001
From: Matthew Fernandez <matthew.fernandez@gmail.com>
Date: Tue, 9 Aug 2022 17:53:26 -0700
Subject: [PATCH] xdot printAlign: squash -Wswitch-default warning

This switch is exhaustive.
---
 lib/xdot/xdot.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/xdot/xdot.c b/lib/xdot/xdot.c
index 86058332d..32086b5af 100644
--- a/lib/xdot/xdot.c
+++ b/lib/xdot/xdot.c
@@ -11,6 +11,7 @@
 #include <cgraph/agxbuf.h>
 #include <cgraph/alloc.h>
 #include <cgraph/prisize_t.h>
+#include <cgraph/unreachable.h>
 #include <xdot/xdot.h>
 #include <stdlib.h>
 #include <string.h>
@@ -491,6 +492,8 @@ static void printAlign(xdot_align a, pf print, void *info)
     case xd_center:
 	print(" 0", info);
 	break;
+    default:
+	UNREACHABLE();
     }
 }
 
-- 
2.40.0