diff --git a/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp b/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp index 82223eae363..badf74c0593 100644 --- a/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp +++ b/src/plugins/cmakeprojectmanager/fileapidataextractor.cpp @@ -698,6 +698,8 @@ FileApiQtcData generateFallbackData(const FilePath &topCmakeFile, const FilePath &buildDirectory, QString errorMessage) { + Q_UNUSED(buildDirectory) + FileApiQtcData result; result.rootProjectNode.reset(new CMakeProjectNode{sourceDirectory}); diff --git a/src/plugins/coreplugin/editormanager/editorview.cpp b/src/plugins/coreplugin/editormanager/editorview.cpp index 35657df79e8..ec49b44eca2 100644 --- a/src/plugins/coreplugin/editormanager/editorview.cpp +++ b/src/plugins/coreplugin/editormanager/editorview.cpp @@ -135,7 +135,7 @@ EditorView::EditorView(SplitterOrView *parentSplitterOrView, QWidget *parent) : m_container->addWidget(empty); m_widgetEditorMap.insert(empty, nullptr); - auto dropSupport = new DropSupport(this, [this](QDropEvent *event, DropSupport *dropSupport) -> bool { + const auto dropSupport = new DropSupport(this, [this](QDropEvent *event, DropSupport *) { // do not accept move events except from other editor views (i.e. their tool bars) // otherwise e.g. item views that support moving items within themselves would // also "move" the item into the editor view, i.e. the item would be removed from the