OSDN Git Service

Using Q_UNUSED to avoid warnings from MinGW
authorRobert Loehning <robert.loehning@nokia.com>
Fri, 30 Apr 2010 11:32:39 +0000 (13:32 +0200)
committerRobert Loehning <robert.loehning@nokia.com>
Fri, 30 Apr 2010 11:34:12 +0000 (13:34 +0200)
src/plugins/debugger/registerpostmortemaction.cpp
src/shared/registryaccess/registryaccess.cpp

index 4398a1d..b18e09c 100644 (file)
@@ -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;
index f4148d0..3b0c8ae 100644 (file)
@@ -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)