build: fix the build with enable_run_as_node disabled (#15711)

This commit is contained in:
Alexey Kuzmin 2019-01-11 17:02:06 +01:00 committed by Shelley Vohr
parent ca218b6395
commit 3cb9aadb80
5 changed files with 46 additions and 3 deletions

View file

@ -53,7 +53,7 @@ namespace {
const char kRunAsNode[] = "ELECTRON_RUN_AS_NODE";
#endif
bool IsEnvSet(const char* name) {
ALLOW_UNUSED_TYPE bool IsEnvSet(const char* name) {
#if defined(OS_WIN)
size_t required_size;
getenv_s(&required_size, nullptr, 0, name);