From 4eaa95769d40e1838ea5a0577d41f005540fe92e Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 11 Nov 2021 00:03:07 +0000 Subject: [PATCH] LibJS: Add missing (void) to handle [[nodiscard]] TRY() result --- Userland/Libraries/LibJS/Runtime/Temporal/PlainMonthDay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainMonthDay.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainMonthDay.cpp index 1170f31990..7e645313a9 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainMonthDay.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainMonthDay.cpp @@ -119,7 +119,7 @@ ThrowCompletionOr to_temporal_month_day(GlobalObject& global_obj } // 4. Perform ? ToTemporalOverflow(options). - TRY(to_temporal_overflow(global_object, *options)); + (void)TRY(to_temporal_overflow(global_object, *options)); // 5. Let string be ? ToString(item). auto string = TRY(item.to_string(global_object));