From 690bcb7b2c750ce6935e979c392395882d51744b Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 2 Oct 2010 14:22:03 +0000 Subject: libvo: remove UNUSED() macros Remove UNUSED macros used to shut up unused function parameter warnings. The macros are duplicated all over libvo and serve no useful purpose nowadays. A better way to shut up the warnings is -Wno-unused-parameter. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32422 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xvidix.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libvo/vo_xvidix.c') diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index c7481ae613..f6c39f9f77 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -57,7 +57,7 @@ static const vo_info_t info = { }; LIBVO_EXTERN(xvidix) -#define UNUSED(x) ((void)(x)) /* Removes warning about unused arguments */ + /* X11 related variables */ /* Colorkey handling */ static int colorkey; @@ -339,12 +339,6 @@ static void flip_page(void) static int draw_slice(uint8_t * src[], int stride[], int w, int h, int x, int y) { - UNUSED(src); - UNUSED(stride); - UNUSED(w); - UNUSED(h); - UNUSED(x); - UNUSED(y); mp_msg(MSGT_VO, MSGL_FATAL, "[xvidix] error: didn't used vidix draw_slice!\n"); return -1; @@ -352,7 +346,6 @@ static int draw_slice(uint8_t * src[], int stride[], static int draw_frame(uint8_t * src[]) { - UNUSED(src); mp_msg(MSGT_VO, MSGL_FATAL, "[xvidix] error: didn't used vidix draw_frame!\n"); return -1; -- cgit v1.2.3