Disable Clang -Wnontrivial-memaccess warning on Memset.hpp

Bug: chromium:378970852
Change-Id: Iaec5c63ae567fbd6047d2e3ff8e3225242e74eac
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/74408
Reviewed-by: Shahbaz Youssefi <syoussefi@google.com>
Tested-by: Shahbaz Youssefi <syoussefi@google.com>
Commit-Queue: Shahbaz Youssefi <syoussefi@google.com>
diff --git a/src/Device/Memset.hpp b/src/Device/Memset.hpp
index 91c7e4d..bfc7bf2 100644
--- a/src/Device/Memset.hpp
+++ b/src/Device/Memset.hpp
@@ -26,6 +26,13 @@
 #	pragma GCC diagnostic push
 #	pragma GCC diagnostic ignored "-Wclass-memaccess"
 #endif
+// Clang also warns that
+// error: first argument in call to 'memset' is a pointer to non-trivially
+// copyable type 'T' [-Werror,-Wnontrivial-memaccess]
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wnontrivial-memaccess"
+#endif
 
 namespace sw {