egl/x11: resolve "initialization from incompatible pointer type" warning
authorMark Kettenis <mark.kettenis@xs4all.nl>
Fri, 29 Apr 2016 16:31:10 +0000 (17:31 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 1 May 2016 07:37:25 +0000 (08:37 +0100)
commitb8e59292e6a19673ca34a8aaeeb26d75dca23f3f
tree1a43ed130e21f66549fe9802a2c348684a324a26
parenta92910ae37878b441ecb1c488f0a40d80a48f6fe
egl/x11: resolve "initialization from incompatible pointer type" warning

With earlier commit we've moved a few functions and changing the
argument type from _EGLDisplay * to struct dri2_egl_display *.

The latter is effectively a wrapper around the former, thus
functionality was preserved, although GCC rightfully warned us about the
misuse.

Add a simple wrapper that casts and propagates the correct type.

Fixes: 9bbf3737f9c ("egl/x11: authenticate before doing chipset id
ioctls")
Cc: "11.2 11.1" <mesa-stable@lists.freedesktop.org>
Reported-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_x11.c