]> granicus.if.org Git - graphviz/commitdiff
neatogen: squash a -Wundef warning for 'DEBUG'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 18 Jan 2023 16:33:01 +0000 (08:33 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 22 Jan 2023 00:32:26 +0000 (16:32 -0800)
lib/neatogen/stress.c

index 3f18c8e100fe2641b207e35fca2efc6f8d8a16d3..832770d3ef8d330d2983ec7ecaecfcbc73d43166 100644 (file)
@@ -827,7 +827,7 @@ float *compute_apsp_artifical_weights_packed(vtx_data * graph, int n)
     return Dij;
 }
 
-#if DEBUG > 1
+#if defined(DEBUG) && DEBUG > 1
 static void dumpMatrix(float *Dij, int n)
 {
     int i, j, count = 0;