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/i915_hwmc.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/i915_hwmc.c')
-rw-r--r-- | src/i915_hwmc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/i915_hwmc.c b/src/i915_hwmc.c index cdcef5a8..c3d3c755 100644 --- a/src/i915_hwmc.c +++ b/src/i915_hwmc.c @@ -97,6 +97,7 @@ typedef struct _I915XvMC #define ARRARY_SIZE(a) (sizeof(a) / sizeof(a[0])) +/* static int yv12_subpicture_index_list[2] = { FOURCC_IA44, @@ -108,6 +109,7 @@ static XF86MCImageIDList yv12_subpicture_list = ARRARY_SIZE(yv12_subpicture_index_list), yv12_subpicture_index_list }; + */ static XF86MCSurfaceInfoRec i915_YV12_mpg2_surface = { @@ -147,6 +149,7 @@ static XF86MCSurfaceInfoPtr ppSI[2] = (XF86MCSurfaceInfoPtr)&i915_YV12_mpg1_surface }; +#if 0 /* List of subpicture types that we support */ static XF86ImageRec ia44_subpicture = XVIMAGE_IA44; static XF86ImageRec ai44_subpicture = XVIMAGE_AI44; @@ -156,7 +159,7 @@ static XF86ImagePtr i915_subpicture_list[2] = (XF86ImagePtr)&ia44_subpicture, (XF86ImagePtr)&ai44_subpicture }; - +#endif /* * Init and clean up the screen private parts of XvMC. |