diff --git a/src/plugins/debugger/registerpostmortemaction.cpp b/src/plugins/debugger/registerpostmortemaction.cpp index 4398a1d977284a69f020dbbbde145e19fc255bec..b18e09c2ac6e939d743323ba608384b710516922 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 f4148d06d596e1bde549ae3b5d68d8c747153adb..3b0c8ae90e00aa308c3e05fa5b8669763d0dd40e 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)