diff test/testoverlay.c @ 1439:4d3bb026cd16

Fixed warnings in -pedantic mode
author Sam Lantinga <slouken@libsdl.org>
date Sun, 26 Feb 2006 05:02:14 +0000
parents be9c9c8f6d53
children 782fd950bd46 c121d94672cb
line wrap: on
line diff
--- a/test/testoverlay.c	Sun Feb 26 04:54:01 2006 +0000
+++ b/test/testoverlay.c	Sun Feb 26 05:02:14 2006 +0000
@@ -34,8 +34,6 @@
 
 void RGBtoYUV(Uint8 *rgb, int *yuv, int monochrome, int luminance)
 {
-    int i;
-
     if (monochrome)
     {
 #if 1 /* these are the two formulas that I found on the FourCC site... */
@@ -80,7 +78,7 @@
     */
 }
 
-ConvertRGBtoYV12(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
+void ConvertRGBtoYV12(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
 {
 	int x,y;
 	int yuv[3];
@@ -120,7 +118,7 @@
 	SDL_UnlockSurface(s);
 }
 
-ConvertRGBtoIYUV(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
+void ConvertRGBtoIYUV(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
 {
 	int x,y;
 	int yuv[3];
@@ -160,7 +158,7 @@
 	SDL_UnlockSurface(s);
 }
 
-ConvertRGBtoUYVY(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
+void ConvertRGBtoUYVY(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
 {
 	int x,y;
 	int yuv[3];
@@ -193,7 +191,7 @@
 	SDL_UnlockSurface(s);
 }
 
-ConvertRGBtoYVYU(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
+void ConvertRGBtoYVYU(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
 {
 	int x,y;
 	int yuv[3];
@@ -229,7 +227,7 @@
 	SDL_UnlockSurface(s);
 }
 
-ConvertRGBtoYUY2(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
+void ConvertRGBtoYUY2(SDL_Surface *s, SDL_Overlay *o, int monochrome, int luminance)
 {
 	int x,y;
 	int yuv[3];