From 09a68affa388ffafdf361ccd3de621173f2b8b48 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 21 Jul 2018 12:22:41 +0200 Subject: Fix warnings and status --- ice40/main.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ice40/main.cc') diff --git a/ice40/main.cc b/ice40/main.cc index 652196a1..70324a91 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -68,8 +68,10 @@ void svg_dump_decal(const Context *ctx, const DecalXY &decal) void conflicting_options(const boost::program_options::variables_map &vm, const char *opt1, const char *opt2) { - if (vm.count(opt1) && !vm[opt1].defaulted() && vm.count(opt2) && !vm[opt2].defaulted()) - log_error((std::string("Conflicting options '") + opt1 + "' and '" + opt2 + "'.").c_str()); + if (vm.count(opt1) && !vm[opt1].defaulted() && vm.count(opt2) && !vm[opt2].defaulted()) { + std::string msg = "Conflicting options '"+ std::string(opt1) + "' and '" + std::string(opt1) + "'."; + log_error("%s\n",msg.c_str()); + } } int main(int argc, char *argv[]) -- cgit v1.2.3