Merge pull request #14 from uralbash/master

Fix Windows warning about unused timeout argument. Thanks to @uralbash
This commit is contained in:
Itay Grudev 2016-08-24 12:12:22 +01:00 committed by Itay Grudev
commit 006170d054
No known key found for this signature in database
GPG Key ID: 913C021BA6F9DE98

View File

@ -67,6 +67,7 @@ void SingleApplicationPrivate::genBlockServerName( int timeout )
// User level block requires a user specific data in the hash
if( options & SingleApplication::Mode::User ) {
#ifdef Q_OS_WIN
Q_UNUSED(timeout);
wchar_t username [ UNLEN + 1 ];
// Specifies size of the buffer on input
DWORD usernameLength = UNLEN + 1;