summaryrefslogtreecommitdiff
path: root/frontends/vhdl2verilog/vhdl2verilog.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-03-06 16:37:19 +0100
committerClifford Wolf <clifford@clifford.at>2014-03-06 16:37:19 +0100
commit4d07f8825845618daffb4d61bdcbb3eda0e1393a (patch)
treeb71c3af61589436f3703cce493e386446879050d /frontends/vhdl2verilog/vhdl2verilog.cc
parent9b9c3327ccf3a8e69f9af57333839f470df0ce66 (diff)
Fixed gcc compiler warning
Diffstat (limited to 'frontends/vhdl2verilog/vhdl2verilog.cc')
-rw-r--r--frontends/vhdl2verilog/vhdl2verilog.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/vhdl2verilog/vhdl2verilog.cc b/frontends/vhdl2verilog/vhdl2verilog.cc
index de393693..0467810e 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();
}