From: Matthew Fernandez Date: Mon, 6 Sep 2021 19:56:58 +0000 (-0700) Subject: makeObstacle: squash a spurious -Wswitch-default compiler warning X-Git-Tag: 2.49.1~30^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2df6e2ecb6ae4b035163e9c2bba338d9e6ab2f61;p=graphviz makeObstacle: squash a spurious -Wswitch-default compiler warning The surrounding context ensures that the cases in this switch cover every possibility. --- diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index 2ac72a63c..b4fe04ea4 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -11,6 +11,7 @@ #include "config.h" +#include #include #include #include @@ -359,6 +360,8 @@ Ppoly_t *makeObstacle(node_t * n, expand_t* pmargin, boolean isOrtho) xmargin = margin.x; ymargin = -margin.y; break; + default: + UNREACHABLE(); } polyp.x = verts[j].x + xmargin; polyp.y = verts[j].y + ymargin;