From fd0ab2e98c6db66227093377ac3c12095fdd52cb Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Mon, 21 Oct 2024 17:04:11 +0200 Subject: [PATCH] Remove unused variable and unrecognized compiler flag --- CMakeLists.txt | 5 ----- src/gui/traymenu.cpp | 1 - 2 files changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a7da3dad6..4cec6dbf7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,11 +141,6 @@ if (PEDANTIC) -Wno-padded -Wno-switch-enum ) - - # Disable Q_OBJECT macro warnings. - list(APPEND copyq_pedantic_flags - -Wno-unused-member-function - ) endif() if(WITH_TESTS) diff --git a/src/gui/traymenu.cpp b/src/gui/traymenu.cpp index c6be4bf9ae..c13e39ea1a 100644 --- a/src/gui/traymenu.cpp +++ b/src/gui/traymenu.cpp @@ -224,7 +224,6 @@ void TrayMenu::setNumberSearchEnabled(bool enabled) void TrayMenu::keyPressEvent(QKeyEvent *event) { const int key = event->key(); - Qt::KeyboardModifiers mods = event->modifiers(); m_omitPaste = false; bool not_searching = m_searchText.isEmpty();