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=2c8ebb4f810ae7b8a11856e02c8af33e7076575c;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 Signed-off-by: Jason Stephenson --- 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; } }