summaryrefslogtreecommitdiff
path: root/src/i830_dvo.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-26 10:11:36 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-26 10:11:36 +0800
commitc13efdd3d6d3846078766814b57306a7519bce18 (patch)
tree6ca909f31bd0a2a4e4eb32ff9ca284ed55f9b433 /src/i830_dvo.c
parent8cdbd55f8075cd18b563badde35815665d7d053e (diff)
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.
Diffstat (limited to 'src/i830_dvo.c')
-rw-r--r--src/i830_dvo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_dvo.c b/src/i830_dvo.c
index 75618333..9e821710 100644
--- a/src/i830_dvo.c
+++ b/src/i830_dvo.c
@@ -330,6 +330,7 @@ i830_dvo_destroy (xf86OutputPtr output)
}
}
+#ifdef RANDR_GET_CRTC_INTERFACE
static xf86CrtcPtr
i830_dvo_get_crtc(xf86OutputPtr output)
{
@@ -341,6 +342,7 @@ i830_dvo_get_crtc(xf86OutputPtr output)
return i830_pipe_to_crtc(pScrn, pipe);
}
+#endif
static const xf86OutputFuncsRec i830_dvo_output_funcs = {
.dpms = i830_dvo_dpms,