From d95e50643e676ea3c2fbd09198a6a770ccaab83c Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 2 Dec 2021 12:53:02 +0000 Subject: LibGUI: Cast unused smart-pointer return values to void --- Userland/Libraries/LibGUI/UndoStack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGUI/UndoStack.cpp') diff --git a/Userland/Libraries/LibGUI/UndoStack.cpp b/Userland/Libraries/LibGUI/UndoStack.cpp index 11585e362d..9ca07e0f57 100644 --- a/Userland/Libraries/LibGUI/UndoStack.cpp +++ b/Userland/Libraries/LibGUI/UndoStack.cpp @@ -57,7 +57,7 @@ void UndoStack::push(NonnullOwnPtr command) { // If the stack cursor is behind the top of the stack, nuke everything from here to the top. while (m_stack.size() != m_stack_index) - m_stack.take_last(); + (void)m_stack.take_last(); if (m_clean_index.has_value() && m_clean_index.value() > m_stack.size()) m_clean_index = {}; -- cgit v1.2.3