提交 2fc99153 编写于 作者: C Chinmay Garde 提交者: GitHub

Decorate kDartWriteProtectCodeArgs with FTL_ALLOW_UNUSED_TYPE since it may not...

Decorate kDartWriteProtectCodeArgs with FTL_ALLOW_UNUSED_TYPE since it may not be used in all configurations. (#3302)
上级 5afca375
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册