tst_QProcess: fix compilation on Windows
Suppress warning:
..\tst_qprocess.cpp:272:13: warning: 'void childProcessModifier(int)'
defined but not used ...
Change-Id: Idf601df78be256cfbee0ca80252d1c364c712c8e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
bb10
parent
8ae9431c79
commit
ed8b8ffde4
|
|
@ -268,12 +268,14 @@ void tst_QProcess::simpleStart()
|
|||
QCOMPARE(qvariant_cast<QProcess::ProcessState>(spy.at(2).at(0)), QProcess::NotRunning);
|
||||
}
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
static const char messageFromChildProcess[] = "Message from the child process";
|
||||
static void childProcessModifier(int fd)
|
||||
{
|
||||
QT_WRITE(fd, messageFromChildProcess, sizeof(messageFromChildProcess) - 1);
|
||||
QT_CLOSE(fd);
|
||||
}
|
||||
#endif
|
||||
|
||||
void tst_QProcess::setChildProcessModifier()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue