From 0faaa79bae9a0ea9763ad85d55c2eb904630d0fb Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 7 Aug 2012 10:49:13 -0700 Subject: [PATCH] Remove two duplicate typedef statements. These two typedefs exactly matched earlier ones in the same scope and gcc was complaining that they were shadowing the previous definitions. Since the definitions matched exactly just deleting the second typedef was acceptable. --- elab_sig.cc | 1 - elaborate.cc | 1 - 2 files changed, 2 deletions(-) diff --git a/elab_sig.cc b/elab_sig.cc index 232fc0b0d..98ba980e6 100644 --- a/elab_sig.cc +++ b/elab_sig.cc @@ -390,7 +390,6 @@ bool PGenerate::elaborate_sig_direct_(Design*des, NetScope*container) const ; cur != generate_schemes.end() ; ++ cur ) { PGenerate*item = *cur; if (item->scheme_type == PGenerate::GS_CASE) { - typedef list::const_iterator generate_it_t; for (generate_it_t icur = item->generate_schemes.begin() ; icur != item->generate_schemes.end() ; ++ icur ) { PGenerate*case_item = *icur; diff --git a/elaborate.cc b/elaborate.cc index 7a24cb69b..38e6dd451 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -4699,7 +4699,6 @@ bool PGenerate::elaborate_direct_(Design*des, NetScope*container) const // contain anything. Instead scan the case items, which // are listed as sub-schemes of the item. if (item->scheme_type == PGenerate::GS_CASE) { - typedef list::const_iterator generate_it_t; for (generate_it_t icur = item->generate_schemes.begin() ; icur != item->generate_schemes.end() ; ++ icur ) { PGenerate*case_item = *icur;