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)