From 16cdba4e343a0091a5f8b38c581867d1c6c0f54d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 13 Mar 2023 12:06:26 -0700 Subject: piglit: Fix build with clang when using NXP BSP Fixes build errors e.g. tests/egl/egl-util.c:89:9: error: incompatible integer to pointer conversion returning 'Pixmap' (aka 'unsigned long') from a function with result type 'EGLNativePixmapType' (aka 'struct wl_egl_pixmap *') [-Wint-conversion] return XCreatePixmap(state->dpy, state->win, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Khem Raj --- recipes-graphics/piglit/piglit_%.bbappend | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-graphics/piglit/piglit_%.bbappend b/recipes-graphics/piglit/piglit_%.bbappend index 2b7561d1..882d4ddf 100644 --- a/recipes-graphics/piglit/piglit_%.bbappend +++ b/recipes-graphics/piglit/piglit_%.bbappend @@ -1,4 +1,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +CFLAGS:append:imxgpu:toolchain-clang = " -Wno-error=int-conversion" PACKAGECONFIG:remove:imxgpu = "x11 glx" PACKAGECONFIG:append:mx8-nxp-bsp = " opencl" -- cgit v1.2.3-54-g00ecf