]> granicus.if.org Git - graphviz/commitdiff
common: squash -Wswitch-default warning in 'cvtPt'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 21 May 2022 03:28:21 +0000 (20:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 23 May 2022 05:00:30 +0000 (22:00 -0700)
This switch is exhaustive, as `rankdir` is only intended to be one of the four
covered rank direction constants.

lib/common/shapes.c

index 1bdc9ac73729b0b3c9803a6e8ea8d31e10c35da8..32bdd4c2a719a5ff1146e8153fb53e9b67eca82a 100644 (file)
@@ -4087,6 +4087,8 @@ static point cvtPt(pointf p, int rankdir)
        q.y = p.x;
        q.x = p.y;
        break;
+    default:
+       UNREACHABLE();
     }
     PF2P(q, Q);
     return Q;