[PATCH:xf86-video-mga] Fix pointer cast warning.
mark.kettenis at xs4all.nl
Mon Feb 23 23:16:33 PST 2015
> Date: Mon, 23 Feb 2015 22:55:51 -0800
> From: Alan Coopersmith <alan.coopersmith at oracle.com>
> On 02/23/15 10:36 PM, Mark Kettenis wrote:
> >> cast to pointer from integer of different size
> >> [-Werror=int-to-pointer-cast]
> >> Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
> >> ---
> >> src/mga_exa.c | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> > This code makes no sense to me. exaGetPixmapFirstPixel() returns a pixel
> > value. Interpreting that as a pointer to the first pixel must be wrong.
> > Note that the actual usage of mgaDownloadFromScreen() is #if 0'ed out.
> Perhaps in your copy, but not upstream:
He, right. Mattieu Herrb disabled this locally in OpenBSD's xenocara:
date: 2013/06/14 21:21:54; author: matthieu; state: Exp; lines: +2 -0;
Disable broken EXA operations for now.
Breakage was probably introduced with commit
e9109a0b04695d6971c94abe271dda2dc1a5e886. Not sure if simply
reverting that commit is an option.
More information about the xorg-devel