diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-03-26 10:11:36 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-03-26 10:11:36 +0800 |
commit | c13efdd3d6d3846078766814b57306a7519bce18 (patch) | |
tree | 6ca909f31bd0a2a4e4eb32ff9ca284ed55f9b433 /src/i830_lvds.c | |
parent | 8cdbd55f8075cd18b563badde35815665d7d053e (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_lvds.c')
-rw-r--r-- | src/i830_lvds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c index 0b331efc..772a8b88 100644 --- a/src/i830_lvds.c +++ b/src/i830_lvds.c @@ -879,6 +879,7 @@ i830_lvds_get_property(xf86OutputPtr output, Atom property) } #endif /* RANDR_13_INTERFACE */ +#ifdef RANDR_GET_CRTC_INTERFACE static xf86CrtcPtr i830_lvds_get_crtc(xf86OutputPtr output) { @@ -888,6 +889,7 @@ i830_lvds_get_crtc(xf86OutputPtr output) return i830_pipe_to_crtc(pScrn, pipe); } +#endif static const xf86OutputFuncsRec i830_lvds_output_funcs = { .create_resources = i830_lvds_create_resources, |