From ac517807eaf637ebb2b233d7763c32642d47e2eb Mon Sep 17 00:00:00 2001 From: Robert Loehning <robert.loehning@nokia.com> Date: Fri, 30 Apr 2010 13:32:39 +0200 Subject: [PATCH] Using Q_UNUSED to avoid warnings from MinGW --- src/plugins/debugger/registerpostmortemaction.cpp | 2 ++ src/shared/registryaccess/registryaccess.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/plugins/debugger/registerpostmortemaction.cpp b/src/plugins/debugger/registerpostmortemaction.cpp index 4398a1d9772..b18e09c2ac6 100644 --- a/src/plugins/debugger/registerpostmortemaction.cpp +++ b/src/plugins/debugger/registerpostmortemaction.cpp @@ -79,6 +79,8 @@ RegisterPostMortemAction::RegisterPostMortemAction(QObject *parent) : Utils::Sav void RegisterPostMortemAction::readSettings(const QSettings *) { + Q_UNUSED(debuggerRegistryValueNameC); // avoid warning from MinGW + bool registered = false; HKEY handle = 0; QString errorMessage; diff --git a/src/shared/registryaccess/registryaccess.cpp b/src/shared/registryaccess/registryaccess.cpp index f4148d06d59..3b0c8ae90e0 100644 --- a/src/shared/registryaccess/registryaccess.cpp +++ b/src/shared/registryaccess/registryaccess.cpp @@ -104,6 +104,7 @@ bool openRegistryKey(HKEY category, // HKEY_LOCAL_MACHINE, etc. HKEY *keyHandle, QString *errorMessage) { + Q_UNUSED(debuggerRegistryKeyC); // avoid warning from MinGW REGSAM accessRights = KEY_READ; if (readWrite) -- GitLab