From a16bdf62eac21a0588ea01a873052698b5f5363b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 6 Sep 2021 11:21:20 -0700 Subject: [PATCH] tcldot myiddisc_idregister: squash a spurious -Wswitch-default compiler warning --- tclpkg/tcldot/tcldot-id.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tclpkg/tcldot/tcldot-id.c b/tclpkg/tcldot/tcldot-id.c index 29424e37f..85f783fcc 100644 --- a/tclpkg/tcldot/tcldot-id.c +++ b/tclpkg/tcldot/tcldot-id.c @@ -8,7 +8,7 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ - +#include #include "tcldot.h" // Agiddisc functions @@ -90,6 +90,7 @@ static void myiddisc_idregister(void *state, int objtype, void *obj) { case AGNODE: proc=nodecmd; break; case AGINEDGE: case AGOUTEDGE: proc=edgecmd; break; + default: UNREACHABLE(); } #ifndef TCLOBJ Tcl_CreateCommand(interp, obj2cmd(obj), proc, (ClientData) gctx, (Tcl_CmdDeleteProc *) NULL); -- 2.40.0