From d951fd81cb4830781eda1b7edb42a4204266dc0a Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 22 Jul 2020 15:57:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D1=8B=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D1=83=D0=BF=D1=80=D0=B5=D0=B6=D0=B4=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/myx/backports/cpp/span.hpp | 2 +- src/myx/qt/posix_signal_watcher.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/myx/backports/cpp/span.hpp b/src/myx/backports/cpp/span.hpp index 6cf6339..ac09b51 100644 --- a/src/myx/backports/cpp/span.hpp +++ b/src/myx/backports/cpp/span.hpp @@ -144,7 +144,7 @@ public: * @param container The container to assign from */ template< class ContiguousContainer > - typename std::enable_if< is_contiguous_container< + typename std::enable_if< is_contiguous_container< //NOLINT ContiguousContainer, T >::value, span& >::type operator=( ContiguousContainer&& container ) diff --git a/src/myx/qt/posix_signal_watcher.cpp b/src/myx/qt/posix_signal_watcher.cpp index fa98ff2..4d5cc7d 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; - (void)::read( sockfd, &signal, sizeof( signal ) ); + Q_UNUSED( !::read( sockfd, &signal, sizeof( signal ) ) ); qDebug() << "Caught signal: " << ::strsignal( signal ); Q_EMIT q->posixSignal( signal ); } ); @@ -63,7 +63,7 @@ MYXLIB_INLINE void PosixSignalWatcherPrivate::watchForSignal( int signal ) #if MYX_QT_HAS_POSIX_SIGNALS // Register a sigaction which will write to the socket pair - struct sigaction sigact; + struct sigaction sigact; //NOLINT sigact.sa_handler = PosixSignalWatcherPrivate::signalHandler; //NOLINT sigact.sa_flags = 0; sigemptyset( &sigact.sa_mask ); @@ -86,7 +86,7 @@ MYXLIB_INLINE void PosixSignalWatcherPrivate::watchForSignal( int signal ) */ MYXLIB_INLINE void PosixSignalWatcherPrivate::signalHandler( int signal ) { - (void)::write( mSockpair[0], &signal, sizeof( signal ) ); + Q_UNUSED( !::write( mSockpair[0], &signal, sizeof( signal ) ) ); }