From c13efdd3d6d3846078766814b57306a7519bce18 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Wed, 26 Mar 2008 10:11:36 +0800 Subject: More compile warning fixes. o Check for RANDR_GET_CRTC_INTERFACE before defining functions that are used only if it is defined. o Declare a variable before code, and rename it from ret to xvmc_status to better describe it. o if 0 some static functions not used. o Don't declare some unused variables. o Declare as static some functions that are used only in the file defining it. o Add a default/fallback return True to the Bool function src/xvmc/intel_batchbuffer.c:intelInitBatchBuffer(). o Ansify src/xvmc/xf86dri.c. o Add missing prototype to src/xvmc/xf86dri.h and follow pattern of other headers by adding "extern" before function prototype. --- src/xvmc/intel_xvmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xvmc/intel_xvmc.c') diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c index 489a2c2c..1be8cc6b 100644 --- a/src/xvmc/intel_xvmc.c +++ b/src/xvmc/intel_xvmc.c @@ -250,7 +250,7 @@ Status XvMCCreateContext(Display *display, XvPortID port, XVMC_ERR("Unable to create XvMC Context."); return ret; } - XVMC_DBG("new context %d created\n", context->context_id); + XVMC_DBG("new context %d created\n", (int)context->context_id); comm = (struct _intel_xvmc_common *)priv_data; @@ -341,7 +341,7 @@ Status XvMCCreateContext(Display *display, XvPortID port, context->context_id, &intel_ctx->hw_context)) { XVMC_ERR("Could not create DRI context for xvmc ctx %d.", - context->context_id); + (int)context->context_id); XFree(priv_data); context->privData = NULL; drmUnmap(xvmc_driver->sarea_address, xvmc_driver->sarea_size); -- cgit v1.2.3