Skip to content

Commit

Permalink
try [[maybe_unused]] attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
user-none committed Aug 14, 2024
1 parent 5dec3df commit 45ff098
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;
static_cast<void>(::write(m_closeSignalFd[0], &tmp, sizeof(tmp)));
[[maybe_unused]] ::write(m_closeSignalFd[0], &tmp, sizeof(tmp));
}

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

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

0 comments on commit 45ff098

Please sign in to comment.