diff options
author | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2020-12-23 14:38:25 -0800 |
---|---|---|
committer | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2020-12-23 14:38:25 -0800 |
commit | 84c0b5c6904ebc317daee637bbf70af5c468c7aa (patch) | |
tree | 2cee06ab625ec170e73970c14f0492d004fff208 | |
parent | 832f6aa777558ccef3b06798d182372b5783c51f (diff) | |
download | yosys-84c0b5c6904ebc317daee637bbf70af5c468c7aa.tar.gz yosys-84c0b5c6904ebc317daee637bbf70af5c468c7aa.tar.bz2 yosys-84c0b5c6904ebc317daee637bbf70af5c468c7aa.zip |
passes/pmgen/pmgen.py: trivial change to remove C++ compiler warnings
Verified that the result still builds and passes self-tests
-rw-r--r-- | passes/pmgen/pmgen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/pmgen/pmgen.py b/passes/pmgen/pmgen.py index db827ee82..6e2fabeeb 100644 --- a/passes/pmgen/pmgen.py +++ b/passes/pmgen/pmgen.py @@ -453,7 +453,7 @@ with open(outfile, "w") as f: print(" SigSpec port(Cell *cell, IdString portname) {", file=f) print(" try {", file=f) print(" return sigmap(cell->getPort(portname));", file=f) - print(" } catch(std::out_of_range) { log_error(\"Accessing non existing port %s\\n\",portname.c_str()); }", file=f) + print(" } catch(std::out_of_range&) { log_error(\"Accessing non existing port %s\\n\",portname.c_str()); }", file=f) print(" }", file=f) print("", file=f) print(" SigSpec port(Cell *cell, IdString portname, const SigSpec& defval) {", file=f) @@ -464,7 +464,7 @@ with open(outfile, "w") as f: print(" Const param(Cell *cell, IdString paramname) {", file=f) print(" try {", file=f) print(" return cell->getParam(paramname);", file=f) - print(" } catch(std::out_of_range) { log_error(\"Accessing non existing parameter %s\\n\",paramname.c_str()); }", file=f) + print(" } catch(std::out_of_range&) { log_error(\"Accessing non existing parameter %s\\n\",paramname.c_str()); }", file=f) print(" }", file=f) print("", file=f) print(" Const param(Cell *cell, IdString paramname, const Const& defval) {", file=f) |