diff options
author | Tobias Doerffel <tobias.doerffel@gmail.com> | 2009-12-09 09:57:20 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-12-10 14:07:30 -0800 |
commit | 8d6faf7dc546bda64e11bf6dea7f3c997f07f887 (patch) | |
tree | b61a051355dc9b6cefda7ab2e88002a685990f9a /src | |
parent | bd81734465912d79d6320a6fb021ce43d258b906 (diff) |
Fix compiler warning in i830_copy_video_data() if XvMC is disabled
The variable "intel" is unused when building i830_video.c without XvMC
support which results in a compiler warning:
i830_video.c: In function 'i830_copy_video_data':
i830_video.c:1443: warning: unused variable `intel'
Trivial fix via #ifdef.
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_video.c b/src/i830_video.c index 7d0d3bf2..8f6bfd24 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -1428,7 +1428,9 @@ i830_copy_video_data(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv, INT32 x1, INT32 y1, INT32 x2, INT32 y2, int id, unsigned char *buf) { +#ifdef INTEL_XVMC intel_screen_private *intel = intel_get_screen_private(scrn); +#endif int srcPitch = 0, srcPitch2 = 0; int top, left, npixels, nlines, size; |