]> granicus.if.org Git - graphviz/commitdiff
polylineMidpoint: squash warnings about using 'mf' uninitialized
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Oct 2021 20:47:40 +0000 (13:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Oct 2021 05:22:16 +0000 (22:22 -0700)
lib/common/splines.c

index d0f8cd98cc2813ec8f61ec241b53ce398ba48a77..bcc412699acf9c3c8f5b0b9ead6715f81875c8e6 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <math.h>
 #include <common/render.h>
+#include <cgraph/unreachable.h>
 
 #ifdef DEBUG
 static int debugleveln(edge_t* e, int i)
@@ -1299,8 +1300,7 @@ polylineMidpoint (splines* spl, pointf* pp, pointf* pq)
                dist -= d;
        }
     }
-    assert (FALSE);   /* should never get here */
-    return mf;
+    UNREACHABLE();
 }
 
 pointf