Suppress -Wnontrivial-memcall warning
Memcall functions work at the byte level so they don't know about C++
semantics and these C++ objects might not have trivial constructors or
destructors. I suppressed the warning.
external/swiftshader/third_party/llvm-16.0/llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1036:12:
error: first argument in call to 'memcpy' is a pointer to non-trivially
copyable type 'GenericValue' [-Werror,-Wnontrivial-memcall]
1036 | memcpy(Ptr, Val.IntVal.getRawData(), 10);
| ^
Test: m in Android & preesubmits
Bug: b/430598176
Change-Id: I0cfd6b6a3da34744dd6a8724f5648d3b4d77b01a
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/76088
Commit-Queue: Shahbaz Youssefi <syoussefi@google.com>
Tested-by: Shahbaz Youssefi <syoussefi@google.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@google.com>
diff --git a/third_party/llvm-16.0/Android.bp b/third_party/llvm-16.0/Android.bp
index 62d31c6..c382558 100644
--- a/third_party/llvm-16.0/Android.bp
+++ b/third_party/llvm-16.0/Android.bp
@@ -1498,6 +1498,7 @@
cflags: [
"-Wno-ignored-qualifiers",
"-Wno-implicit-fallthrough",
+ "-Wno-nontrivial-memcall",
"-Wno-unreachable-code-loop-increment",
"-Wno-unused-parameter",
"-Wno-unused-variable",