From 108d5e3910c4842e1e26aa7ec6a58e4888fa00d3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 11 Oct 2020 08:52:06 -0700 Subject: [PATCH] suppress a -Wundef warning --- lib/ortho/partition.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ortho/partition.c b/lib/ortho/partition.c index 44b443dc4..029787e45 100644 --- a/lib/ortho/partition.c +++ b/lib/ortho/partition.c @@ -19,6 +19,10 @@ #include #include +#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); -- 2.50.1