diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/UndoStack.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/UndoStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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> 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 = {}; |