From: Chris Sharp Date: Wed, 20 Sep 2017 00:46:28 +0000 (-0400) Subject: LP#1243841 - Quiet unused return value warning in srfsh.c X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7a365b1b3131f19511a57cbc8d710924b2b711db;p=working%2FOpenSRF.git LP#1243841 - Quiet unused return value warning in srfsh.c Using the technique described here: https://stackoverflow.com/a/13999461. Signed-off-by: Chris Sharp --- diff --git a/src/srfsh/srfsh.c b/src/srfsh/srfsh.c index e3705a9..1887bac 100644 --- a/src/srfsh/srfsh.c +++ b/src/srfsh/srfsh.c @@ -383,7 +383,7 @@ static int process_request( const char* request ) { else if ( request[0] == '!') { if (!no_bang) { - system( request + 1 ); + (void) (system( request + 1 )+1); ret_val = 1; } }