Use Q_UNUSED to supress compiler warning about return value
This commit is contained in:
parent
81f56ebf5b
commit
80f61a291b
|
@ -222,7 +222,8 @@ bool QxtDaemon::daemonize(bool pidfile)
|
|||
qFatal("can't get a lock on \"/var/run/%s.pid\". another instance is propably already running.", qPrintable(m_name));
|
||||
|
||||
QByteArray d = QByteArray::number(pid());
|
||||
Q_UNUSED(::write(lfp, d.constData(), d.size()));
|
||||
ssize_t retval = ::write(lfp, d.constData(), d.size());
|
||||
Q_UNUSED(retval);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue