[Intel-gfx] [PATCH] Fix compiler warning in i830_copy_video_data() if XvMC is disabled

Carl Worth cworth at cworth.org
Thu Dec 10 23:08:52 CET 2009


On Wed,  9 Dec 2009 09:57:20 +0100, Tobias Doerffel <tobias.doerffel at gmail.com> wrote:
> 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.

Thanks, Tobias.

I've committed this now, and will push it out shortly.

-Carl

PS. An interesting additional question is whether we can just require
XvMC always, (he says, wanting to remove as many instances of #ifdef
From the driver as possible...)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20091210/6b9c1e8f/attachment.sig>


More information about the Intel-gfx mailing list