Replace Q_UNUSED with [[maybe_unused]] attribute

PR #19471.
This commit is contained in:
Victor Chernyakin 2023-08-17 21:09:40 -07:00 committed by GitHub
parent f3f4610ba4
commit 34d30ed031
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 31 additions and 75 deletions

View file

@ -1110,10 +1110,8 @@ void Application::initializeTranslation()
}
#if (!defined(DISABLE_GUI) && defined(Q_OS_WIN))
void Application::shutdownCleanup(QSessionManager &manager)
void Application::shutdownCleanup([[maybe_unused]] QSessionManager &manager)
{
Q_UNUSED(manager);
// This is only needed for a special case on Windows XP.
// (but is called for every Windows version)
// If a process takes too much time to exit during OS