]> git.imager.perl.org - imager.git/commitdiff
lint comment for the end of pixel_coverage() not reachable
authorTony Cook <tony@develop-help.com>
Sat, 2 Feb 2019 00:31:29 +0000 (11:31 +1100)
committerTony Cook <tony@develop-help.com>
Sat, 2 Feb 2019 00:31:29 +0000 (11:31 +1100)
I had compilers complaining about a missing return at the end of
the function, as added a return.  Coverity complains about the
return.

CID 185325.

polygon.c

index 54923b47e96ee8ddd746c1788c0828d56e52f656..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 */
 }