diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-02-08 21:21:51 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-02-08 21:21:51 +0100 |
commit | db86aaa07d65534151037b7762d4a36ccb41098e (patch) | |
tree | e9f29d163c52b3c5979d4d02902c46a4714aff25 /passes | |
parent | c06de50f052f96bb4f55676436685ee51302343d (diff) | |
download | yosys-db86aaa07d65534151037b7762d4a36ccb41098e.tar.gz yosys-db86aaa07d65534151037b7762d4a36ccb41098e.tar.bz2 yosys-db86aaa07d65534151037b7762d4a36ccb41098e.zip |
Build fixes for log cmd
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/log.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/cmds/log.cc b/passes/cmds/log.cc index 839955cc1..34db0eed8 100644 --- a/passes/cmds/log.cc +++ b/passes/cmds/log.cc @@ -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()); |