]> git.imager.perl.org - imager.git/blobdiff - polygon.c
add github action for CI on OS X
[imager.git] / polygon.c
index 58ac8ec3b7a6e2f06e6dcdf7deb6adb81920a572..24b47e58d45b961c22dd41b268eaf7cc29af7b41 100644 (file)
--- a/polygon.c
+++ b/polygon.c
@@ -338,6 +338,7 @@ pixel_coverage(p_line *line, pcord minx, pcord maxx, pcord  miny, pcord maxy) {
     return r;
   }
 
+  /* NOTREACHED */
   return 0; /* silence compiler warning */
 }
 
@@ -468,7 +469,7 @@ i_poly_poly_aa_low(i_img *im, int count, const i_polygon_t *polys,
 
   for (k = 0; k < count; ++k) {
     if (polys[k].count < 3) {
-      i_push_errorf(0, "polygons must have at least 3 points");
+      i_push_error(0, "polygons must have at least 3 points");
       return 0;
     }
   }
@@ -572,7 +573,7 @@ i_poly_poly_aa_low(i_img *im, int count, const i_polygon_t *polys,
        k = 0;
        while (k < clc) {
          p_line *left = lset + tllist[k++].n;
-         p_line *current;
+         p_line *current = NULL;
          int acc = left->dir;
 
          while (k < clc && acc) {