GCC 16 flags a set-but-unused variable in MS3DLoader.cpp and assimp builds
with -Werror:

  code/AssetLib/MS3D/MS3DLoader.cpp:633:28: error: variable 'qu' set but not
  used [-Werror=unused-but-set-variable=]
  cc1plus: all warnings being treated as errors

Pass -DASSIMP_WARNINGS_AS_ERRORS=OFF so upstream warnings do not break the
build.

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-graphics/assimp/assimp_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-graphics/assimp/assimp_git.bb 
b/meta-oe/recipes-graphics/assimp/assimp_git.bb
index 13d1002946..4cf2d1f787 100644
--- a/meta-oe/recipes-graphics/assimp/assimp_git.bb
+++ b/meta-oe/recipes-graphics/assimp/assimp_git.bb
@@ -20,6 +20,7 @@ inherit cmake
 EXTRA_OECMAKE = "\
     -DASSIMP_BUILD_ASSIMP_TOOLS=OFF \
     -DASSIMP_BUILD_TESTS=OFF \
+    -DASSIMP_WARNINGS_AS_ERRORS=OFF \
     -DASSIMP_LIB_INSTALL_DIR=${baselib} \
     -DCMAKE_INSTALL_PREFIX=${prefix} \
     -DCMAKE_INSTALL_LIBDIR=${baselib} \
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#127930): 
https://lists.openembedded.org/g/openembedded-devel/message/127930
Mute This Topic: https://lists.openembedded.org/mt/120018154/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to