diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-03-06 16:37:19 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-03-06 16:37:19 +0100 |
commit | 4d07f8825845618daffb4d61bdcbb3eda0e1393a (patch) | |
tree | b71c3af61589436f3703cce493e386446879050d /frontends/vhdl2verilog | |
parent | 9b9c3327ccf3a8e69f9af57333839f470df0ce66 (diff) | |
download | yosys-4d07f8825845618daffb4d61bdcbb3eda0e1393a.tar.gz yosys-4d07f8825845618daffb4d61bdcbb3eda0e1393a.tar.bz2 yosys-4d07f8825845618daffb4d61bdcbb3eda0e1393a.zip |
Fixed gcc compiler warning
Diffstat (limited to 'frontends/vhdl2verilog')
-rw-r--r-- | frontends/vhdl2verilog/vhdl2verilog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |