Skip to contentSkip to conversation

vk-gl-cts: Disable Werror on amber external module

PATCH New Khem Raj 1 participant 1 message Jan 26, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 vk-gl-cts: Disable Werror on amber external module

When compiling with clang-18 it finds more warnings which becomes errors so disable the warnings as errors in this module for now.

Fixes
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/opengl-es-cts/3.2.9.3/git/external/amber/src/src/engine.cc:35:3: error: 'switch' missing 'default' label [-Werror,-Wswitch-default]

   35 |   switch (type) {
      |   ^

1 error generated.

---
 meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-graphics/vk-gl-cts/khronos-cts.inc +1 -1
index 72005636ea..04e4227915 100644
@@ -41,7 +41,7 @@ SRC_URI:append:toolchain-clang = "\
 	file://fix-clang-private-operator.patch \
 "
 
-EXTRA_OECMAKE:prepend:class-target = "-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper -DWAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner -DWAYLAND_PROTOCOLS_DIR=${STAGING_DATADIR}/wayland-protocols"
+EXTRA_OECMAKE:prepend:class-target = "-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper -DWAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner -DWAYLAND_PROTOCOLS_DIR=${STAGING_DATADIR}/wayland-protocols -DAMBER_DISABLE_WERROR=ON"
 
 # The best thing for the user to do is to not specify any of the following
 # PACKAGECONFIGs (i.e. leave it blank) which tells the project to do its own
Signature · 1 line
2.43.0