Fixed gcc compiler warning
authorClifford Wolf <clifford@clifford.at>
Thu, 6 Mar 2014 15:37:19 +0000 (16:37 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 6 Mar 2014 15:37:19 +0000 (16:37 +0100)
frontends/vhdl2verilog/vhdl2verilog.cc

index de3936939ada07df83c76ff4b323e0e75a48b47d..0467810e5478f28b147bc5089ef3e8a03f27b841 100644 (file)
@@ -145,7 +145,8 @@ struct Vhdl2verilogPass : public Pass {
                }
 
                log_header("Removing temp directory `%s':\n", tempdir_name);
-               system(stringf("rm -rf '%s'", tempdir_name).c_str());
+               if (system(stringf("rm -rf '%s'", tempdir_name).c_str()) != 0)
+                       log_error("Execution of \"rm -rf '%s'\" failed!\n", tempdir_name);
 
                log_pop();
        }