From 50911e6f967062419b512ee471e66d27db70f2d1 Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Sat, 13 Apr 2024 03:09:30 -0400 Subject: [PATCH] Utilities/w: Work around Clang 18 bug with templated lambda + Variant This was missed in 6f972c1 since this file is not compiled as a part of a Lagom build. --- Userland/Utilities/w.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/w.cpp b/Userland/Utilities/w.cpp index 131291cf8fd..6a5e5d59fcc 100644 --- a/Userland/Utilities/w.cpp +++ b/Userland/Utilities/w.cpp @@ -68,7 +68,7 @@ ErrorOr serenity_main(Main::Arguments args) if (!hide_header) outln("\033[1m{:10} {:12} {:16} {:6} {}\033[0m", "USER", "TTY", "LOGIN@", "IDLE", "WHAT"); - TRY(json.as_object().try_for_each_member([&](auto& tty, auto& value) -> ErrorOr { + TRY(json.as_object().try_for_each_member([&](ByteString const& tty, auto& value) -> ErrorOr { const JsonObject& entry = value.as_object(); auto uid = entry.get_u32("uid"sv).value_or(0); [[maybe_unused]] auto pid = entry.get_i32("pid"sv).value_or(0);