Squelch Metal warnings about unused _globals/_out.
Change-Id: I84e546184d1ce8261602346d2c91c580b30e9b6d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357001
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Adlai Holler <adlai@google.com>
Reviewed-by: Adlai Holler <adlai@google.com>
diff --git a/src/sksl/SkSLMetalCodeGenerator.cpp b/src/sksl/SkSLMetalCodeGenerator.cpp
index f592926..24deb17 100644
--- a/src/sksl/SkSLMetalCodeGenerator.cpp
+++ b/src/sksl/SkSLMetalCodeGenerator.cpp
@@ -1592,6 +1592,7 @@
if (f.declaration().name() == "main") {
this->writeGlobalInit();
this->writeLine(" Outputs _out;");
+ this->writeLine(" (void)_out;");
}
fFunctionHeader = "";
@@ -2182,6 +2183,7 @@
void finish() {
if (!fFirst) {
fCodeGen->writeLine("};");
+ fCodeGen->writeLine(" (void)_globals;");
}
}
MetalCodeGenerator* fCodeGen = nullptr;