From f8f1813bf17f745719c9dabbdfc5c7bed05c7138 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Tue, 19 Sep 2017 20:46:28 -0400 Subject: [PATCH] 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 --- src/srfsh/srfsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.43.2