From db86aaa07d65534151037b7762d4a36ccb41098e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 8 Feb 2014 21:21:51 +0100 Subject: [PATCH] Build fixes for log cmd --- passes/cmds/log.cc | 4 ++-- 1 file 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 args, RTLIL::Design *design) + virtual void execute(std::vector 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()); -- 2.30.2