mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
LibCore: Mark 'Read options' parameter [[maybe_unused]] in Account.cpp
This broke the macOS clang CI build.
This commit is contained in:
parent
cbb7329d69
commit
dc60774ac4
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ ErrorOr<Account> Account::from_passwd(const passwd& pwd, const spwd& spwd)
|
||||||
return account;
|
return account;
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<Account> Account::self(Read options)
|
ErrorOr<Account> Account::self([[maybe_unused]] Read options)
|
||||||
{
|
{
|
||||||
Vector<gid_t> extra_gids = TRY(Core::System::getgroups());
|
Vector<gid_t> extra_gids = TRY(Core::System::getgroups());
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ ErrorOr<Account> Account::self(Read options)
|
||||||
return Account(*pwd, spwd, extra_gids);
|
return Account(*pwd, spwd, extra_gids);
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<Account> Account::from_name(const char* username, Read options)
|
ErrorOr<Account> Account::from_name(const char* username, [[maybe_unused]] Read options)
|
||||||
{
|
{
|
||||||
auto pwd = TRY(Core::System::getpwnam(username));
|
auto pwd = TRY(Core::System::getpwnam(username));
|
||||||
if (!pwd.has_value())
|
if (!pwd.has_value())
|
||||||
|
@ -104,7 +104,7 @@ ErrorOr<Account> Account::from_name(const char* username, Read options)
|
||||||
return from_passwd(*pwd, spwd);
|
return from_passwd(*pwd, spwd);
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<Account> Account::from_uid(uid_t uid, Read options)
|
ErrorOr<Account> Account::from_uid(uid_t uid, [[maybe_unused]] Read options)
|
||||||
{
|
{
|
||||||
auto pwd = TRY(Core::System::getpwuid(uid));
|
auto pwd = TRY(Core::System::getpwuid(uid));
|
||||||
if (!pwd.has_value())
|
if (!pwd.has_value())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue