@@ -317,7 +317,7 @@ bool K3Process::start( RunMode runmode, Communication comm )
317
317
318
318
close ( fd[0 ] );
319
319
// Closing of fd[1] indicates that the execvp() succeeded!
320
- fcntl ( fd[1 ], F_SETFD, FD_CLOEXEC );
320
+ ( void ) fcntl ( fd[1 ], F_SETFD, FD_CLOEXEC );
321
321
322
322
if ( !commSetupDoneC () )
323
323
qDebug () << " Could not finish comm setup in child!" << endl;
@@ -874,15 +874,15 @@ int K3Process::setupCommunication( Communication comm )
874
874
{
875
875
if ( socketpair ( AF_UNIX, SOCK_STREAM, 0 , out ) )
876
876
goto fail1;
877
- fcntl ( out[0 ], F_SETFD, FD_CLOEXEC );
878
- fcntl ( out[1 ], F_SETFD, FD_CLOEXEC );
877
+ ( void ) fcntl ( out[0 ], F_SETFD, FD_CLOEXEC );
878
+ ( void ) fcntl ( out[1 ], F_SETFD, FD_CLOEXEC );
879
879
}
880
880
if ( comm & Stderr )
881
881
{
882
882
if ( socketpair ( AF_UNIX, SOCK_STREAM, 0 , err ) )
883
883
goto fail2;
884
- fcntl ( err[0 ], F_SETFD, FD_CLOEXEC );
885
- fcntl ( err[1 ], F_SETFD, FD_CLOEXEC );
884
+ ( void ) fcntl ( err[0 ], F_SETFD, FD_CLOEXEC );
885
+ ( void ) fcntl ( err[1 ], F_SETFD, FD_CLOEXEC );
886
886
}
887
887
return 1 ; // Ok
888
888
fail2:
@@ -923,7 +923,7 @@ int K3Process::commSetupDoneP()
923
923
924
924
if ( communication & Stdin )
925
925
{
926
- fcntl ( in[1 ], F_SETFL, O_NONBLOCK | fcntl ( in[1 ], F_GETFL ) );
926
+ ( void ) fcntl ( in[1 ], F_SETFL, O_NONBLOCK | fcntl ( in[1 ], F_GETFL ) );
927
927
innot = new QSocketNotifier ( in[1 ], QSocketNotifier::Write, this );
928
928
Q_CHECK_PTR ( innot );
929
929
innot->setEnabled ( false ); // will be enabled when data has to be sent
0 commit comments