[Fuchsia] Stop ignoring warnings in llvm-10.0
Fuchsia build was producing warnings when compiling llvm-10.0, which
were ignored with -Wno-error. Use -Wno-cpp instead to disable these
warnings. This allows to ensure that all other compiler warnings are
not ignored.
Bug: b/203065816
Change-Id: I20fabbf9897ebaffbfc00551f0c8e4eb97810666
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/63008
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Tested-by: Sergey Ulanov <sergeyu@google.com>
Commit-Queue: Sergey Ulanov <sergeyu@google.com>
diff --git a/third_party/llvm-10.0/BUILD.gn b/third_party/llvm-10.0/BUILD.gn
index 80bcf41..94dbaa2 100644
--- a/third_party/llvm-10.0/BUILD.gn
+++ b/third_party/llvm-10.0/BUILD.gn
@@ -56,7 +56,8 @@
}
if (is_fuchsia) {
- cflags += [ "-Wno-error" ]
+ # Ignore #warning for unimplemented features in Process.inc.
+ cflags += [ "-Wno-cpp" ]
}
if (is_clang) {