Merge pull request #11687 from Minty-Meeo/warnings

Resolve GCC/Clang Warnings
This commit is contained in:
Léo Lam 2023-04-14 01:29:46 +01:00 committed by GitHub
commit ae18aa0639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 75 additions and 108 deletions

View file

@ -891,7 +891,7 @@ void MemoryViewWidget::OnContextMenu(const QPoint& pos)
auto* copy_hex = menu->addAction(tr("Copy Hex"), this, [this, addr] { OnCopyHex(addr); });
copy_hex->setEnabled(item_has_value);
auto* copy_value = menu->addAction(tr("Copy Value"), this, [this, item_selected] {
auto* copy_value = menu->addAction(tr("Copy Value"), this, [item_selected] {
QApplication::clipboard()->setText(item_selected->text());
});
copy_value->setEnabled(item_has_value);

View file

@ -143,7 +143,7 @@ int main(int argc, char* argv[])
// code, which makes mouse inputs work again.
// For more information: https://bugs.dolphin-emu.org/issues/12913
#if (QT_VERSION >= QT_VERSION_CHECK(6, 3, 0))
putenv("QT_XCB_NO_XI2=1");
setenv("QT_XCB_NO_XI2", "1", true);
#endif
#endif