Skip to content

Commit dc60774

Browse files
committed
LibCore: Mark 'Read options' parameter [[maybe_unused]] in Account.cpp
This broke the macOS clang CI build.
1 parent cbb7329 commit dc60774

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Userland/Libraries/LibCore/Account.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ ErrorOr<Account> Account::from_passwd(const passwd& pwd, const spwd& spwd)
6565
return account;
6666
}
6767

68-
ErrorOr<Account> Account::self(Read options)
68+
ErrorOr<Account> Account::self([[maybe_unused]] Read options)
6969
{
7070
Vector<gid_t> extra_gids = TRY(Core::System::getgroups());
7171

@@ -86,7 +86,7 @@ ErrorOr<Account> Account::self(Read options)
8686
return Account(*pwd, spwd, extra_gids);
8787
}
8888

89-
ErrorOr<Account> Account::from_name(const char* username, Read options)
89+
ErrorOr<Account> Account::from_name(const char* username, [[maybe_unused]] Read options)
9090
{
9191
auto pwd = TRY(Core::System::getpwnam(username));
9292
if (!pwd.has_value())
@@ -104,7 +104,7 @@ ErrorOr<Account> Account::from_name(const char* username, Read options)
104104
return from_passwd(*pwd, spwd);
105105
}
106106

107-
ErrorOr<Account> Account::from_uid(uid_t uid, Read options)
107+
ErrorOr<Account> Account::from_uid(uid_t uid, [[maybe_unused]] Read options)
108108
{
109109
auto pwd = TRY(Core::System::getpwuid(uid));
110110
if (!pwd.has_value())

0 commit comments

Comments
 (0)