Убраны предупреждения
This commit is contained in:
parent
078732d308
commit
d951fd81cb
@ -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 )
|
||||||
|
@ -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 ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user