Skip to content

Commit

Permalink
fix: add missing [[maybe_unused]] to IsEnvSet (#33269)
Browse files Browse the repository at this point in the history
Co-authored-by: Milan Burda <milan.burda@gmail.com>
  • Loading branch information
trop[bot] and miniak committed Mar 16, 2022
1 parent 9cd76a8 commit 90726a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/app/electron_main_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down
2 changes: 1 addition & 1 deletion shell/app/electron_main_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90726a4

Please sign in to comment.