[Lldb-commits] [lldb] aca4488 - [lldb] Surpress "ingoring result" warning in reproducer_handler

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Sun Dec 27 05:05:54 PST 2020


Author: Pavel Labath
Date: 2020-12-27T13:58:05+01:00
New Revision: aca4488847b4ddceeda8d4ddb2cd9cb3defbab0c

URL: https://github.com/llvm/llvm-project/commit/aca4488847b4ddceeda8d4ddb2cd9cb3defbab0c
DIFF: https://github.com/llvm/llvm-project/commit/aca4488847b4ddceeda8d4ddb2cd9cb3defbab0c.diff

LOG: [lldb] Surpress "ingoring result" warning in reproducer_handler

Added: 
    

Modified: 
    lldb/tools/driver/Driver.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp
index 870f763436a4..e4a60127b65e 100644
--- a/lldb/tools/driver/Driver.cpp
+++ b/lldb/tools/driver/Driver.cpp
@@ -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);
   }
 }


        


More information about the lldb-commits mailing list