diff --git a/shell/app/electron_main_mac.cc b/shell/app/electron_main_mac.cc index 6180a4d80bb2..c0f9576fff7f 100644 --- a/shell/app/electron_main_mac.cc +++ b/shell/app/electron_main_mac.cc @@ -20,7 +20,7 @@ namespace { -bool IsEnvSet(const char* name) { +[[maybe_unused]] bool IsEnvSet(const char* name) { char* indicator = getenv(name); return indicator && indicator[0] != '\0'; } diff --git a/shell/app/electron_main_win.cc b/shell/app/electron_main_win.cc index 38f654e5f047..2be51c27b247 100644 --- a/shell/app/electron_main_win.cc +++ b/shell/app/electron_main_win.cc @@ -44,7 +44,7 @@ namespace { const char kUserDataDir[] = "user-data-dir"; const char kProcessType[] = "type"; -bool IsEnvSet(const char* name) { +[[maybe_unused]] bool IsEnvSet(const char* name) { size_t required_size; getenv_s(&required_size, nullptr, 0, name); return required_size != 0;