summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <jasuarez@igalia.com>2017-07-10 14:59:15 +0000
committerJuan A. Suarez Romero <jasuarez@igalia.com>2017-07-11 18:41:09 +0200
commitff781cbdadb8b0b2fe146918d4243dcfa87425cb (patch)
tree008683de26616d4f19e07cd12e62e9a2d077c6a0
parenta0d7d1cfc0fdf39c758c903cf790875577c3ec88 (diff)
egl_mesa_platform_surfaceless: fix compilation warning
Fixes /build/piglit/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c:94:30: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'NativeWindowType' (aka 'unsigned long') [-Wint-conversion] /*native_window*/ NULL, ^~~~ /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/stddef.h:105:16: note: expanded from macro 'NULL' ^~~~~~~~~~ /build/piglit/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c:125:30: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'NativePixmapType' (aka 'unsigned long') [-Wint-conversion] /*native_window*/ NULL, ^~~~ /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/stddef.h:105:16: note: expanded from macro 'NULL' ^~~~~~~~~~ 2 warnings generated. v2: change function pointer declaration (Emil) Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
-rw-r--r--tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
index 264ed7131..b6f239a2f 100644
--- a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
+++ b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
@@ -29,9 +29,9 @@
* Use prefix 'pegl' (piglit egl) instead of 'egl' to avoid collisions with
* prototypes in eglext.h. */
EGLSurface (*peglCreatePlatformPixmapSurfaceEXT)(EGLDisplay display, EGLConfig config,
- NativePixmapType native_pixmap, const EGLint *attrib_list);
+ void *native_pixmap, const EGLint *attrib_list);
EGLSurface (*peglCreatePlatformWindowSurfaceEXT)(EGLDisplay display, EGLConfig config,
- NativeWindowType native_window, const EGLint *attrib_list);
+ void *native_window, const EGLint *attrib_list);
static void
init_egl_extension_funcs(void)
@@ -122,7 +122,7 @@ test_create_pixmap(void *test_data)
test_setup(&dpy);
surf = peglCreatePlatformPixmapSurfaceEXT(dpy, EGL_NO_CONFIG_KHR,
- /*native_window*/ NULL,
+ /*native_pixmap*/ NULL,
/*attrib_list*/ NULL);
if (surf) {
printf("eglCreatePlatformPixmapSurface incorrectly succeeded\n");