Decorate kDartWriteProtectCodeArgs with FTL_ALLOW_UNUSED_TYPE since it may not be used in all configurations. (flutter/engine#3302)

This commit is contained in:
Chinmay Garde
2016-12-08 16:26:39 -08:00
committed by GitHub
parent c30259f646
commit 3e3e694bfb

View File

@@ -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