Remi Collet avatar Remi Collet committed e8edb92

Fix: -Wpointer-sign + -Wimplicit-function-declaration

Comments (0)

Files changed (1)

 #endif
 
 #include "gd.h"
+#include "gd_errors.h"
 #ifdef HAVE_LIBVPX
 #include "webpimg.h"
 
  *    the row.
  *    4. y_width: width of the Y image plane (aka image width)
  * Output:
- *    5. rgb_sat: pointer to the output rgb row. We reuse this variable, it
+ *    5. rgb_dst: pointer to the output rgb row. We reuse this variable, it
  *    iterates over all pixels in the row.
  */
 static void YUV420toRGBLine(uint8* y_src,
                     U + (y >> 1) * uv_stride,
                     V + (y >> 1) * uv_stride,
                     width,
-                    im->tpixels[y]);
+                    (uint32 *)im->tpixels[y]);
   }
 }
 
   	im = im2;
   }
   for (y = 0; y < (y_height >> 1); ++y) {
-	RGBALinepairToYUV420(im->tpixels[2 * y],
-						 im->tpixels[2 * y + 1],
+	RGBALinepairToYUV420((uint32 *)im->tpixels[2 * y],
+						 (uint32 *)im->tpixels[2 * y + 1],
 						 y_width,
 						 Y + 2 * y * y_stride,
 						 Y + (2 * y + 1) * y_stride,
 						 V + y * uv_stride);
   }
   if (y_height & 1) {
-	RGBALinepairToYUV420(im->tpixels[y_height - 1],
-						 im->tpixels[y_height - 1],
+	RGBALinepairToYUV420((uint32 *)im->tpixels[y_height - 1],
+						 (uint32 *)im->tpixels[y_height - 1],
 						 y_width,
 						 Y + (y_height - 1) * y_stride,
 						 Y + (y_height - 1) * y_stride,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.