]> granicus.if.org Git - graphviz/commitdiff
common: squash -Wswitch-default warning in 'closestSide'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 21 May 2022 03:30:19 +0000 (20:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 23 May 2022 05:00:30 +0000 (22:00 -0700)
This switch is exhaustive due to the containing loop.

lib/common/shapes.c

index 32bdd4c2a719a5ff1146e8153fb53e9b67eca82a..332745a1fe7931f1754f439e34d0d32a6eeda34d 100644 (file)
@@ -4155,6 +4155,8 @@ static char *closestSide(node_t * n, node_t * other, port * oldport)
            p.x = b.LL.x;
            p.y = (b.LL.y + b.UR.y) / 2;
            break;
+       default:
+           UNREACHABLE();
        }
        p.x += pt.x;
        p.y += pt.y;