Skip to content

Commit

Permalink
silence unused result warnings when using socket to signal.
Browse files Browse the repository at this point in the history
  • Loading branch information
user-none committed Aug 14, 2024
1 parent 1b988cc commit 5dec3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ void Application::setKDockerInstance(KDocker *kdocker) {

void Application::notifyCloseSignal() {
char tmp = 1;
::write(m_closeSignalFd[0], &tmp, sizeof(tmp));
static_cast<void>(::write(m_closeSignalFd[0], &tmp, sizeof(tmp)));
}

void Application::handleCloseSignal() {
m_closeSignalSocketNotifier->setEnabled(false);
char tmp;
::read(m_closeSignalFd[1], &tmp, sizeof(tmp));
static_cast<void>(::read(m_closeSignalFd[1], &tmp, sizeof(tmp)));

if (m_kdocker) {
m_kdocker->undockAll();
Expand Down

0 comments on commit 5dec3df

Please sign in to comment.