[fuchsia] Suppress unused result error
We're seeing new errors from unused results after changes to libc++.
Suppress them for now in code we don't control.
Bug: b/469081072
Depends-on: I408c4bef72104d972f5a20eeb24123393adf0543
Change-Id: I83f3dac2d2d9784c7168b9ea2a2cfb0040edc35a
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/Vulkan-ValidationLayers/+/1451628
Reviewed-by: Yilong Li <liyl@google.com>
Dependencies-Satisfied: CL Deps Checker <cl-deps-checker@fuchsia-internal-service-accts.iam.gserviceaccount.com>
Commit-Queue: Paul Kirth <paulkirth@google.com>
Fuchsia-Auto-Submit: Paul Kirth <paulkirth@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 1bf1b52..cbd2acb 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -58,7 +58,10 @@
# Suppress warnings the vulkan code doesn't comply with.
if (is_fuchsia) {
- configs = [ "//build/config:Wno-unused-but-set-variable" ]
+ configs = [
+ "//build/config:Wno-unused-but-set-variable",
+ "//build/config:Wno-unused-result",
+ ]
}
if (is_clang) {
cflags += [ "-Wno-extra-semi" ]