From e99d699ccd8dcc0159dc3c683e5925a688b34ab5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sat, 24 Oct 2026 02:09:55 +0100 Subject: [PATCH] Fix other instances of -Wunused-lambda-capture --- qrenderdoc/Windows/Dialogs/CaptureDialog.cpp | 2 ++ qrenderdoc/Windows/MainWindow.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp b/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp index 337a52bc6..6ddbbe68d 100644 --- a/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp +++ b/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp @@ -470,6 +470,8 @@ void CaptureDialog::vulkanLayerWarn_mouseClick() bool needReg = RENDERDOC_NeedVulkanLayerRegistration(NULL); ui->vulkanLayerWarn->setVisible(needReg); + (void)admin; + #if !defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) // can't alert the user on linux because the command might still be running - there's // seemingly no portable way to wait for the command to finish. diff --git a/qrenderdoc/Windows/MainWindow.cpp b/qrenderdoc/Windows/MainWindow.cpp index 24d27fc78..c513bcd3c 100644 --- a/qrenderdoc/Windows/MainWindow.cpp +++ b/qrenderdoc/Windows/MainWindow.cpp @@ -2873,7 +2873,7 @@ void MainWindow::on_action_Open_RGP_Profile_triggered() return; QString path; - m_Ctx.Replay().BlockAccessInvoke([this, &path](ICaptureAccess *access) { + m_Ctx.Replay().BlockAccessInvoke([&path](ICaptureAccess *access) { int idx = access->FindSectionByType(SectionType::AMDRGPProfile); if(idx < 0)