changeset 33845:786d1187960d

libvo: extend alpha_func function pointers with parameter type declaration This fixes compiler warnings about missing prototypes in function declarations.
author diego
date Wed, 27 Jul 2011 13:40:18 +0000
parents 77bf38091051
children 0b608de512ba
files libvo/vo_s3fb.c libvo/vo_tdfxfb.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_s3fb.c	Wed Jul 27 13:40:16 2011 +0000
+++ b/libvo/vo_s3fb.c	Wed Jul 27 13:40:18 2011 +0000
@@ -69,7 +69,7 @@
   screenwidth, screenheight, screendepth, screenstride,
   vidwidth, vidheight, vidx, vidy, page, offset, sreg;
 static char *inpage, *inpage0, *smem = NULL;
-static void (*alpha_func)();
+static void (*alpha_func)(int, int, unsigned char*, unsigned char*, int, unsigned char*, int);
 
 static void clear_screen(void);
 
--- a/libvo/vo_tdfxfb.c	Wed Jul 27 13:40:16 2011 +0000
+++ b/libvo/vo_tdfxfb.c	Wed Jul 27 13:40:18 2011 +0000
@@ -99,7 +99,8 @@
 static volatile voodoo_2d_reg *reg_2d;
 static voodoo_yuv_reg *reg_YUV;
 static struct YUV_plane *YUV;
-static void (*alpha_func)(), (*alpha_func_double)();
+static void (*alpha_func)(int, int, unsigned char*, unsigned char*, int, unsigned char*, int),
+    (*alpha_func_double)(int, int, unsigned char*, unsigned char*, int, unsigned char*, int);
 
 static int preinit(const char *arg)
 {