]> granicus.if.org Git - graphviz/commitdiff
common: squash 2 -Wundef compiler warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Jun 2022 17:08:54 +0000 (10:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Jun 2022 17:08:54 +0000 (10:08 -0700)
lib/common/emit.c

index 79ccadd18ea9f140a54e42e023211451e9429c82..9ca44f424de29d4132371cac17c2b7733e65f005 100644 (file)
@@ -817,7 +817,7 @@ void update_bb_bz(boxf *bb, pointf *cp)
     }
 }
 
-#if (DEBUG==2)
+#if defined(DEBUG) && DEBUG == 2
 static void psmapOutput (pointf* ps, int n)
 {
    int i;
@@ -865,7 +865,7 @@ static void map_bspline_poly(pointf **pbs_p, int **pbs_n, int *pbs_poly_n, int n
         (*pbs_p)[nump+i] = p1[i];
         (*pbs_p)[nump+last-i] = p2[i];
     }
-#if (DEBUG==2)
+#if defined(DEBUG) && DEBUG == 2
     psmapOutput (*pbs_p + nump, last+1);
 #endif
 }