Fixing warning

Change-Id: I92236680f34b6620c2371a1d9f1d1dcde8ba9282
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Thomas Hartmann
2017-01-12 18:17:25 +01:00
parent ab711a28ed
commit 824fc105c5

View File

@@ -937,6 +937,8 @@ void IosSimulatorToolHandlerPrivate::launchAppOnSimulator(const QStringList &ext
// Poll every 1 sec to check whether the app is running. // Poll every 1 sec to check whether the app is running.
QThread::msleep(1000); QThread::msleep(1000);
} while (!fi.isCanceled() && kill(pid, 0) == 0); } while (!fi.isCanceled() && kill(pid, 0) == 0);
#else
Q_UNUSED(pid);
#endif #endif
// Future is cancelled if the app is stopped from the qt creator. // Future is cancelled if the app is stopped from the qt creator.
if (!fi.isCanceled()) if (!fi.isCanceled())