Index: runtime/vm/parser_test.cc |
diff --git a/runtime/vm/parser_test.cc b/runtime/vm/parser_test.cc |
index a5e6f2e89f5bb3ad3ee5e78ba0f8f8e1baefadfc..c7328ace5d74cee92752d3d9e690e9f655374e61 100644 |
--- a/runtime/vm/parser_test.cc |
+++ b/runtime/vm/parser_test.cc |
@@ -168,10 +168,13 @@ TEST_CASE(Parser_TopLevel) { |
} |
-const char* saved_vars = NULL; |
+#ifndef PRODUCT |
-char* SkipIndex(const char* input) { |
+static const char* saved_vars = NULL; |
+ |
+ |
+static char* SkipIndex(const char* input) { |
char* output_buffer = new char[strlen(input)]; |
char* output = output_buffer; |
@@ -565,4 +568,6 @@ TEST_CASE(Parser_AllocateVariables_MiddleChain) { |
CaptureVarsAtLine(lib, "a", 10)); |
} |
+#endif // !PRODUCT |
+ |
} // namespace dart |