]> granicus.if.org Git - graphviz/commitdiff
gvmap plot_dot_polygons: squash -Wunused-variable warning in release mode
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 10 Jan 2023 16:09:33 +0000 (08:09 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 17:05:18 +0000 (09:05 -0800)
cmd/gvmap/make_map.c

index 2981180934e2744fb082e5cb463bf97e4bcc148e..b172c9839dc77ae812bb46a733841d2f68c351f2 100644 (file)
@@ -294,6 +294,7 @@ static void plot_dot_polygons(agxbuf *sbuff, double line_width,
     np = 0;
     for (j = ia[i]; j < ia[i+1]; j++){
       assert(ja[j] < nverts && ja[j] >= 0);
+      (void)nverts;
       if (abs(a[j]) != ipoly){/* the first poly, or a hole */
        ipoly = abs(a[j]);
        if (r && g && b) {