Убраны предупреждения

This commit is contained in:
Andrei Astafev 2020-07-22 15:57:41 +03:00
parent 078732d308
commit d951fd81cb
2 changed files with 4 additions and 4 deletions

View File

@ -144,7 +144,7 @@ public:
* @param container The container to assign from * @param container The container to assign from
*/ */
template< class ContiguousContainer > template< class ContiguousContainer >
typename std::enable_if< is_contiguous_container< typename std::enable_if< is_contiguous_container< //NOLINT
ContiguousContainer, T >::value, ContiguousContainer, T >::value,
span& >::type span& >::type
operator=( ContiguousContainer&& container ) operator=( ContiguousContainer&& container )

View File

@ -37,7 +37,7 @@ PosixSignalWatcherPrivate::PosixSignalWatcherPrivate( PosixSignalWatcher* q ) :
Q_Q( PosixSignalWatcher ); Q_Q( PosixSignalWatcher );
int signal = 0; int signal = 0;
(void)::read( sockfd, &signal, sizeof( signal ) ); Q_UNUSED( !::read( sockfd, &signal, sizeof( signal ) ) );
qDebug() << "Caught signal: " << ::strsignal( signal ); qDebug() << "Caught signal: " << ::strsignal( signal );
Q_EMIT q->posixSignal( signal ); Q_EMIT q->posixSignal( signal );
} ); } );
@ -63,7 +63,7 @@ MYXLIB_INLINE void PosixSignalWatcherPrivate::watchForSignal( int signal )
#if MYX_QT_HAS_POSIX_SIGNALS #if MYX_QT_HAS_POSIX_SIGNALS
// Register a sigaction which will write to the socket pair // 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_handler = PosixSignalWatcherPrivate::signalHandler; //NOLINT
sigact.sa_flags = 0; sigact.sa_flags = 0;
sigemptyset( &sigact.sa_mask ); sigemptyset( &sigact.sa_mask );
@ -86,7 +86,7 @@ MYXLIB_INLINE void PosixSignalWatcherPrivate::watchForSignal( int signal )
*/ */
MYXLIB_INLINE void PosixSignalWatcherPrivate::signalHandler( int signal ) MYXLIB_INLINE void PosixSignalWatcherPrivate::signalHandler( int signal )
{ {
(void)::write( mSockpair[0], &signal, sizeof( signal ) ); Q_UNUSED( !::write( mSockpair[0], &signal, sizeof( signal ) ) );
} }