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-Tag: osrf_rel_3_1_0-beta~31 X-Git-Url: http://git.equinoxoli.org/?p=opensrf-equinox.git;a=commitdiff_plain;h=f8f1813bf17f745719c9dabbdfc5c7bed05c7138 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 Signed-off-by: Galen Charlton --- 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; } }