0001-code-disable-Werror.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 5146e1c4d58174e302dbdcf2a85c2023be1cffc6 Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Fri, 10 Dec 2021 15:15:30 +0100
  4. Subject: [PATCH] code: disable -Werror
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes:
  9. .../build/assimp-5.1.3/code/PostProcessing/TriangulateProcess.cpp:285:50: error: argument 1 value ‘4294967294’ exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=]
  10. 285 | std::unique_ptr<bool[]> done(new bool[max_out]);
  11. | ^
  12. [...]
  13. .../host/opt/ext-toolchain/powerpc-buildroot-linux-uclibc/include/c++/9.3.0/new:127:26: note: in a call to allocation function ‘void* operator new [](std::size_t)’ declared here
  14. 127 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
  15. | ^~~~~~~~
  16. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  17. ---
  18. code/CMakeLists.txt | 2 --
  19. 1 file changed, 2 deletions(-)
  20. diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
  21. index e45bf8a2a..f71b6583d 100644
  22. --- a/code/CMakeLists.txt
  23. +++ b/code/CMakeLists.txt
  24. @@ -1167,8 +1167,6 @@ TARGET_USE_COMMON_OUTPUT_DIRECTORY(assimp)
  25. # enable warnings as errors ########################################
  26. IF (MSVC)
  27. TARGET_COMPILE_OPTIONS(assimp PRIVATE /WX)
  28. -ELSE()
  29. - TARGET_COMPILE_OPTIONS(assimp PRIVATE -Werror)
  30. ENDIF()
  31. # adds C_FLAGS required to compile zip.c on old GCC 4.x compiler
  32. --
  33. 2.34.1