Fix compiler warnings

This commit is contained in:
Janek Bevendorff 2017-03-10 14:28:26 +01:00
parent 31494ec327
commit da0afd3939
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
4 changed files with 5 additions and 11 deletions

View file

@ -148,7 +148,7 @@ void Application::handleUnixSignal(int sig)
case SIGTERM:
{
char buf = 0;
::write(unixSignalSocket[0], &buf, sizeof(buf));
Q_UNUSED(::write(unixSignalSocket[0], &buf, sizeof(buf)));
return;
}
case SIGHUP:
@ -160,7 +160,7 @@ void Application::quitBySignal()
{
m_unixSignalNotifier->setEnabled(false);
char buf;
::read(unixSignalSocket[1], &buf, sizeof(buf));
Q_UNUSED(::read(unixSignalSocket[1], &buf, sizeof(buf)));
if (nullptr != m_mainWindow)
static_cast<MainWindow*>(m_mainWindow)->appExit();