Build fixes for log cmd

This commit is contained in:
Clifford Wolf 2014-02-08 21:21:51 +01:00
parent c06de50f05
commit db86aaa07d
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ struct LogPass : public Pass {
log(" do not append a newline\n");
log("\n");
}
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
virtual void execute(std::vector<std::string> args, RTLIL::Design*)
{
size_t argidx;
bool to_stdout = false;
@ -68,7 +68,7 @@ struct LogPass : public Pass {
}
for (; argidx < args.size(); argidx++)
text += args[argidx] + ' ';
if (!text.empty()) text.pop_back();
if (!text.empty()) text.resize(text.size()-1);
if (to_stdout) fprintf(stdout, (newline ? "%s\n" : "%s"), text.c_str());
if (to_stderr) fprintf(stderr, (newline ? "%s\n" : "%s"), text.c_str());