diff options
author | 2020-06-13 23:26:21 +0200 | |
---|---|---|
committer | 2020-06-13 23:54:14 +0200 | |
commit | 23c0490019ea90a33eb2b06ff9eb617e56357f13 (patch) | |
tree | 4493910db664741f8cf298dc115e7b09afecf5cf /src/lib/netlist/prg/nltool.cpp | |
parent | 2a95b76ce9c02b8c24cf4aa086e6ad9ebdbf89ea (diff) |
netlist: fix some clang-tidy warnings. (nw)
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r-- | src/lib/netlist/prg/nltool.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp index a7eaa6927a9..8b642c4b840 100644 --- a/src/lib/netlist/prg/nltool.cpp +++ b/src/lib/netlist/prg/nltool.cpp @@ -27,7 +27,7 @@ #define NL_DISABLE_DYNAMIC_LOAD 0 #endif -extern plib::dynlib_static_sym nl_static_solver_syms[]; +extern const plib::dynlib_static_sym nl_static_solver_syms[]; class tool_app_t : public plib::app { @@ -668,8 +668,8 @@ void tool_app_t::static_compile() sout << "// " << e.second.m_module << "\n"; sout << e.second.m_code; } - sout << "extern plib::dynlib_static_sym nl_static_solver_syms[];\n"; - sout << "plib::dynlib_static_sym nl_static_solver_syms[] = {\n"; + sout << "extern const plib::dynlib_static_sym nl_static_solver_syms[];\n"; + sout << "const plib::dynlib_static_sym nl_static_solver_syms[] = {\n"; for (auto &e : map) { sout << "// " << e.second.m_module << "\n"; @@ -1066,7 +1066,7 @@ void tool_app_t::listdevices() { pstring out = plib::pfmt("{1:-20} {2}(<id>")(fl->name())(fl->name()); - netlist::factory::element_t *f; + netlist::factory::element_t *f = nullptr; nt.parser().register_dev(fl->name(), fl->name() + "_lc", std::vector<pstring>(), &f); |