]> granicus.if.org Git - graphviz/commitdiff
remove a now unused jmp_buf
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Oct 2020 18:51:27 +0000 (11:51 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 31 Oct 2020 00:01:11 +0000 (17:01 -0700)
Related to #1801.

lib/pathplan/shortest.c

index 4f54cb27aed3bf7a7d49d27870a5a4a671498712..a51d99ef30eb5926f999ad8b7ecb663641a15c2d 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <stdlib.h>
 #include <stdio.h>
-#include <setjmp.h>
 #include <stdlib.h>
 #include <limits.h>
 #include <math.h>
@@ -64,7 +63,6 @@ typedef struct deque_t {
     int pnlpn, fpnlpi, lpnlpi, apex;
 } deque_t;
 
-static jmp_buf jbuf;
 static pointnlink_t *pnls, **pnlps;
 static int pnln, pnll;
 
@@ -115,8 +113,6 @@ int Pshortestpath(Ppoly_t * polyp, Ppoint_t * eps, Ppolyline_t * output)
     int pnli;
 #endif
 
-    if (setjmp(jbuf))
-       return -2;
     /* make space */
     if (growpnls(polyp->pn) != 0)
        return -2;