]> granicus.if.org Git - graphviz/commitdiff
dotgen: fix: defined but unused label 'finish' in builds without ortho
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 17 Aug 2021 04:36:16 +0000 (06:36 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 23 Aug 2021 19:39:48 +0000 (21:39 +0200)
Fixes this warning when building without ortho.

lib/dotgen/dotsplines.c: In function ‘_dot_splines’:
lib/dotgen/dotsplines.c:530:1: warning: label ‘finish’ defined but not used [-Wunused-label]
  530 | finish :
      | ^~~~~~

lib/dotgen/dotsplines.c

index 6d9ac49edff53fff222dafa3c00fb4b1574df21d..f026e41b28aca2d6334f4bd055630bb0c8c8c688 100644 (file)
@@ -527,7 +527,9 @@ static void _dot_splines(graph_t * g, int normalize)
     if (normalize)
        edge_normalize(g);
 
+#ifdef ORTHO
 finish :
+#endif
     /* vladimir: place port labels */
     /* FIX: head and tail labels are not part of cluster bbox */
     if ((E_headlabel || E_taillabel) && (E_labelangle || E_labeldistance)) {