From 2fc99153b70b0c381616051be2396f68a2b895f7 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Thu, 8 Dec 2016 16:26:39 -0800 Subject: [PATCH] Decorate kDartWriteProtectCodeArgs with FTL_ALLOW_UNUSED_TYPE since it may not be used in all configurations. (#3302) --- runtime/dart_init.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/dart_init.cc b/runtime/dart_init.cc index 1222749cd..3fe0676c3 100644 --- a/runtime/dart_init.cc +++ b/runtime/dart_init.cc @@ -90,7 +90,7 @@ static const char* kDartBackgroundCompilationArgs[] = { "--background_compilation", }; -static const char* kDartWriteProtectCodeArgs[] = { +static const char* kDartWriteProtectCodeArgs[] FTL_ALLOW_UNUSED_TYPE = { "--no_write_protect_code", }; @@ -641,8 +641,7 @@ void InitDartVM() { #if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG // Debug mode uses the JIT, disable code page write protection to avoid // memory page protection changes before and after every compilation. - PushBackAll(&args, - kDartWriteProtectCodeArgs, + PushBackAll(&args, kDartWriteProtectCodeArgs, arraysize(kDartWriteProtectCodeArgs)); #endif -- GitLab