Fix shadow warning when using older versions of gcc.

This commit is contained in:
Martin Whitaker 2017-11-08 21:23:22 +00:00
parent ad83a135e5
commit d1487c10f1
2 changed files with 3 additions and 3 deletions

View File

@ -112,10 +112,10 @@ void Definitions::add_class(netclass_t*net_class)
* in question. * 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) bool nest, bool program, bool interface, bool compilation_unit)
: type_(t), name_(n), nested_module_(nest), program_block_(program), : 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; events_ = 0;
lcounter_ = 0; lcounter_ = 0;

View File

@ -931,7 +931,7 @@ class NetScope : public Definitions, public Attrib {
and attach it to the given parent. If no compilation unit is and attach it to the given parent. If no compilation unit is
specified, the parent's compilation unit is used. The name specified, the parent's compilation unit is used. The name
is expected to have been permallocated. */ 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 nest=false, bool program=false, bool interface=false,
bool compilation_unit=false); bool compilation_unit=false);
~NetScope(); ~NetScope();