Skip to content

Commit

Permalink
tst_QSqlThread: match #if-ery on declaration to use
Browse files Browse the repository at this point in the history
Variable was declared outside #if-ery but only used inside,
leading to warnings when the define wasn't set.

Change-Id: Iad6a236bdf76b8ca0a58a84509d19f7e1a3e2df2
Reviewed-by: Mikhail Svetkin <[email protected]>
Reviewed-by: Andy Shaw <[email protected]>
  • Loading branch information
ediosyncratic committed Jul 5, 2018
1 parent b14527f commit 2afa6e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,10 @@ void tst_QSqlThread::readWriteThreading()
QTRY_VERIFY_WITH_TIMEOUT(threadFinishedCount >= 2, 10000);
}

#ifdef QOCI_THREADED
// run with n threads in parallel. Change this constant to hammer the poor DB server even more
static const int maxThreadCount = 4;
#endif

void tst_QSqlThread::readFromSingleConnection()
{
Expand Down

0 comments on commit 2afa6e5

Please sign in to comment.