From dc60774ac439ea1105405e088d3f3d4ca7add4e4 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 2 Jan 2022 21:59:54 +0100 Subject: [PATCH] LibCore: Mark 'Read options' parameter [[maybe_unused]] in Account.cpp This broke the macOS clang CI build. --- Userland/Libraries/LibCore/Account.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibCore/Account.cpp b/Userland/Libraries/LibCore/Account.cpp index 1f287a7a19..f756fc6681 100644 --- a/Userland/Libraries/LibCore/Account.cpp +++ b/Userland/Libraries/LibCore/Account.cpp @@ -65,7 +65,7 @@ ErrorOr Account::from_passwd(const passwd& pwd, const spwd& spwd) return account; } -ErrorOr Account::self(Read options) +ErrorOr Account::self([[maybe_unused]] Read options) { Vector extra_gids = TRY(Core::System::getgroups()); @@ -86,7 +86,7 @@ ErrorOr Account::self(Read options) return Account(*pwd, spwd, extra_gids); } -ErrorOr Account::from_name(const char* username, Read options) +ErrorOr Account::from_name(const char* username, [[maybe_unused]] Read options) { auto pwd = TRY(Core::System::getpwnam(username)); if (!pwd.has_value()) @@ -104,7 +104,7 @@ ErrorOr Account::from_name(const char* username, Read options) return from_passwd(*pwd, spwd); } -ErrorOr Account::from_uid(uid_t uid, Read options) +ErrorOr Account::from_uid(uid_t uid, [[maybe_unused]] Read options) { auto pwd = TRY(Core::System::getpwuid(uid)); if (!pwd.has_value())