]> granicus.if.org Git - graphviz/commitdiff
suppress a -Wundef warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 11 Oct 2020 15:52:06 +0000 (08:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Oct 2020 00:25:18 +0000 (17:25 -0700)
lib/ortho/partition.c

index 44b443dc4c14d06cdfffeb676530969adcc42766..029787e45fb8d20a323267005394d579972d2459 100644 (file)
 #include <math.h>
 #include <stdlib.h>
 
+#ifndef DEBUG
+  #define DEBUG 0
+#endif
+
 #define NPOINTS 4   /* only rectangles */
 #define TRSIZE(ss) (5*(ss)+1)
 
@@ -303,7 +307,7 @@ make_new_monotone_poly (int mcur, int v0, int v1)
   vp0->nextfree++;
   vp1->nextfree++;
 
-#ifdef DEBUG
+#if DEBUG > 0
   fprintf(stderr, "make_poly: mcur = %d, (v0, v1) = (%d, %d)\n", 
          mcur, v0, v1);
   fprintf(stderr, "next posns = (p, q) = (%d, %d)\n", p, q);