From d1487c10f1ad265085b571d099e85a407ff6e63f Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Wed, 8 Nov 2017 21:23:22 +0000 Subject: [PATCH] Fix shadow warning when using older versions of gcc. --- net_scope.cc | 4 ++-- netlist.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net_scope.cc b/net_scope.cc index d1c386fef..b9873786e 100644 --- a/net_scope.cc +++ b/net_scope.cc @@ -112,10 +112,10 @@ void Definitions::add_class(netclass_t*net_class) * in question. */ -NetScope::NetScope(NetScope*up, const hname_t&n, NetScope::TYPE t, NetScope*unit, +NetScope::NetScope(NetScope*up, const hname_t&n, NetScope::TYPE t, NetScope*in_unit, bool nest, bool program, bool interface, bool compilation_unit) : type_(t), name_(n), nested_module_(nest), program_block_(program), - is_interface_(interface), is_unit_(compilation_unit), unit_(unit), up_(up) + is_interface_(interface), is_unit_(compilation_unit), unit_(in_unit), up_(up) { events_ = 0; lcounter_ = 0; diff --git a/netlist.h b/netlist.h index 35ac3cab8..09856c198 100644 --- a/netlist.h +++ b/netlist.h @@ -931,7 +931,7 @@ class NetScope : public Definitions, public Attrib { and attach it to the given parent. If no compilation unit is specified, the parent's compilation unit is used. The name is expected to have been permallocated. */ - NetScope(NetScope*up, const hname_t&name, TYPE t, NetScope*unit=0, + NetScope(NetScope*up, const hname_t&name, TYPE t, NetScope*in_unit=0, bool nest=false, bool program=false, bool interface=false, bool compilation_unit=false); ~NetScope();