From: Clifford Wolf Date: Thu, 6 Mar 2014 15:37:19 +0000 (+0100) Subject: Fixed gcc compiler warning X-Git-Tag: yosys-0.3.0~83 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d07f8825845618daffb4d61bdcbb3eda0e1393a;p=yosys.git Fixed gcc compiler warning --- diff --git a/frontends/vhdl2verilog/vhdl2verilog.cc b/frontends/vhdl2verilog/vhdl2verilog.cc index de3936939..0467810e5 100644 --- a/frontends/vhdl2verilog/vhdl2verilog.cc +++ b/frontends/vhdl2verilog/vhdl2verilog.cc @@ -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(); }