[lldb] Surpress "ingoring result" warning in reproducer_handler
authorPavel Labath <pavel@labath.sk>
Sun, 27 Dec 2020 12:56:35 +0000 (13:56 +0100)
committerPavel Labath <pavel@labath.sk>
Sun, 27 Dec 2020 12:58:05 +0000 (13:58 +0100)
lldb/tools/driver/Driver.cpp

index 870f763..e4a6012 100644 (file)
@@ -732,7 +732,8 @@ void sigcont_handler(int signo) {
 
 void reproducer_handler(void *finalize_cmd) {
   if (SBReproducer::Generate()) {
-    std::system(static_cast<const char *>(finalize_cmd));
+    int result = std::system(static_cast<const char *>(finalize_cmd));
+    (void)result;
     fflush(stdout);
   }
 }