aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-06 20:54:42 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-06 20:54:42 +0200
commit5908f2af0697c2be0467b4a83e783d5155992f05 (patch)
tree099e9ccc3f0bb6c84fea42058ab7838fd1e8831b
parent16b9a2f1b5ad10aa0b426183b4e071d3afb09e88 (diff)
downloadnextpnr-5908f2af0697c2be0467b4a83e783d5155992f05.tar.gz
nextpnr-5908f2af0697c2be0467b4a83e783d5155992f05.tar.bz2
nextpnr-5908f2af0697c2be0467b4a83e783d5155992f05.zip
json: Fixing the build
Signed-off-by: David Shah <davey1576@gmail.com>
-rw-r--r--frontend/json/jsonparse.cc4
-rw-r--r--frontend/json/jsonparse.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc
index 45edabad..0f8fb48c 100644
--- a/frontend/json/jsonparse.cc
+++ b/frontend/json/jsonparse.cc
@@ -377,7 +377,7 @@ void json_import_cell_ports(Design *design, string &modname, CellInfo *cell,
log_error("JSON no connection match "
"for port_direction \'%s\' of node \'%s\' "
"in module \'%s\'\n",
- port_name, cell->name.c_str(), modname.c_str());
+ port_name.c_str(), cell->name.c_str(), modname.c_str());
assert(wire_group_node);
@@ -546,7 +546,7 @@ void json_import_cell(Design *design, string modname, JsonNode *cell_node,
param_node = cell_node->data_dict.at("parameters");
if (param_node->type != 'D')
- log_error("JSON parameter list of \'%s\' is not a data dictionary\n", cell->name);
+ log_error("JSON parameter list of \'%s\' is not a data dictionary\n", cell->name.c_str());
//
// Loop through all parameters, adding them into the
diff --git a/frontend/json/jsonparse.h b/frontend/json/jsonparse.h
index 12bf6dcd..6b444be9 100644
--- a/frontend/json/jsonparse.h
+++ b/frontend/json/jsonparse.h
@@ -24,6 +24,6 @@
#include <istream>
#include "design.h"
-extern void parse_json_file(std::istream *&, std::string &, Design *);
+extern void parse_json_file(std::istream *&, std::string , Design *);
#endif