From e5c5185eda9054c145fef9266443b82e02195f3d Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Fri, 24 Mar 2017 12:47:00 +0100
Subject: [PATCH] compilation warning removal

---
 targets/SIMU/USER/oaisim.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/targets/SIMU/USER/oaisim.c b/targets/SIMU/USER/oaisim.c
index d18cb8259e..60221ac201 100644
--- a/targets/SIMU/USER/oaisim.c
+++ b/targets/SIMU/USER/oaisim.c
@@ -1216,7 +1216,10 @@ main (int argc, char **argv)
   for(int i =0; i<NUMBER_OF_UE_MAX; i++){
       char command_line[100];
       sprintf(command_line, "while ip rule del table %d; do true; done",i+201);
-      system(command_line);
+      /* we don't care about return value from system(), but let's the
+       * compiler be silent, so let's do "if (XX);"
+       */
+      if (system(command_line)) /* nothing */;
   }
   // start thread for log gen
   log_thread_init ();
-- 
GitLab