mirror of https://github.com/KLayout/klayout.git
Some small fixes to make clang-analyze happy.
This commit is contained in:
parent
c6b5d2f8d2
commit
15567d3d27
|
|
@ -358,8 +358,10 @@ void LayoutToNetlistStandardReader::read_netlist (db::Netlist *netlist, db::Layo
|
|||
dm->set_name (name);
|
||||
netlist->add_device_abstract (dm);
|
||||
|
||||
db::cell_index_type ci = l2n->internal_layout ()->add_cell (name.c_str ());
|
||||
dm->set_cell_index (ci);
|
||||
if (l2n) {
|
||||
db::cell_index_type ci = l2n->internal_layout ()->add_cell (name.c_str ());
|
||||
dm->set_cell_index (ci);
|
||||
}
|
||||
|
||||
std::string cls;
|
||||
read_word_or_quoted (cls);
|
||||
|
|
|
|||
|
|
@ -1930,6 +1930,7 @@ property_getter_impl (int mid, PyObject *self)
|
|||
|
||||
// a signal getter is implemented as returning a proxy object for the signal which allows manipulation
|
||||
// of the signal
|
||||
tl_assert (p != 0); // no static signals
|
||||
return PYASignal::create (self, p->signal_handler (meth));
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue