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_0_1~7 X-Git-Url: http://git.equinoxoli.org/?p=opensrf-equinox.git;a=commitdiff_plain;h=c298ab7017627c3502a1b185e2d5871dd0b671ee 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; } }