diff --git a/src/myx/qt/posix_signal_watcher.cpp b/src/myx/qt/posix_signal_watcher.cpp index 4d5cc7d..91d2a1a 100644 --- a/src/myx/qt/posix_signal_watcher.cpp +++ b/src/myx/qt/posix_signal_watcher.cpp @@ -37,7 +37,7 @@ PosixSignalWatcherPrivate::PosixSignalWatcherPrivate( PosixSignalWatcher* q ) : Q_Q( PosixSignalWatcher ); int signal = 0; - Q_UNUSED( !::read( sockfd, &signal, sizeof( signal ) ) ); + (void)::read( sockfd, &signal, sizeof( signal ) ); qDebug() << "Caught signal: " << ::strsignal( signal ); Q_EMIT q->posixSignal( signal ); } ); @@ -86,7 +86,7 @@ MYXLIB_INLINE void PosixSignalWatcherPrivate::watchForSignal( int signal ) */ MYXLIB_INLINE void PosixSignalWatcherPrivate::signalHandler( int signal ) { - Q_UNUSED( !::write( mSockpair[0], &signal, sizeof( signal ) ) ); + (void)::write( mSockpair[0], &signal, sizeof( signal ) ); }