From 77da1476294ea9296cda7f8d150595beb9fcc79d Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 5 Jul 2003 20:42:08 +0000 Subject: [PATCH] Fix some enumeration warnings. --- design_dump.cc | 7 ++++++- netlist.cc | 8 +++++++- pform_dump.cc | 8 +++++++- t-dll.cc | 9 ++++++++- t-xnf.cc | 11 ++++++++++- 5 files changed, 38 insertions(+), 5 deletions(-) diff --git a/design_dump.cc b/design_dump.cc index 291514984..19f307282 100644 --- a/design_dump.cc +++ b/design_dump.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: design_dump.cc,v 1.142 2003/06/20 00:53:19 steve Exp $" +#ident "$Id: design_dump.cc,v 1.143 2003/07/05 20:42:08 steve Exp $" #endif # include "config.h" @@ -775,6 +775,8 @@ void NetScope::dump(ostream&o) const case TASK: task_def()->dump(o, 4); break; + default: + break; } /* Dump any sub-scopes. */ @@ -1047,6 +1049,9 @@ void Design::dump(ostream&o) const /* * $Log: design_dump.cc,v $ + * Revision 1.143 2003/07/05 20:42:08 steve + * Fix some enumeration warnings. + * * Revision 1.142 2003/06/20 00:53:19 steve * Module attributes from the parser * through to elaborated form. diff --git a/netlist.cc b/netlist.cc index a914449bd..1491845e1 100644 --- a/netlist.cc +++ b/netlist.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: netlist.cc,v 1.216 2003/06/18 03:55:18 steve Exp $" +#ident "$Id: netlist.cc,v 1.217 2003/07/05 20:42:08 steve Exp $" #endif # include "config.h" @@ -40,6 +40,9 @@ ostream& operator<< (ostream&o, NetNet::Type t) case NetNet::IMPLICIT_REG: o << "reg /*implicit*/"; break; + case NetNet::INTEGER: + o << "integer"; + break; case NetNet::REG: o << "reg"; break; @@ -2176,6 +2179,9 @@ const NetProc*NetTaskDef::proc() const /* * $Log: netlist.cc,v $ + * Revision 1.217 2003/07/05 20:42:08 steve + * Fix some enumeration warnings. + * * Revision 1.216 2003/06/18 03:55:18 steve * Add arithmetic shift operators. * diff --git a/pform_dump.cc b/pform_dump.cc index c7a7e9473..7a683f6f3 100644 --- a/pform_dump.cc +++ b/pform_dump.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: pform_dump.cc,v 1.81 2003/06/20 00:53:19 steve Exp $" +#ident "$Id: pform_dump.cc,v 1.82 2003/07/05 20:42:08 steve Exp $" #endif # include "config.h" @@ -641,6 +641,9 @@ void PTask::dump(ostream&out, unsigned ind) const case NetNet::PINOUT: out << "inout "; break; + default: + assert(0); + break; } out << (*ports_)[idx]->path() << ";" << endl; } @@ -878,6 +881,9 @@ void PUdp::dump(ostream&out) const /* * $Log: pform_dump.cc,v $ + * Revision 1.82 2003/07/05 20:42:08 steve + * Fix some enumeration warnings. + * * Revision 1.81 2003/06/20 00:53:19 steve * Module attributes from the parser * through to elaborated form. diff --git a/t-dll.cc b/t-dll.cc index 1346d95bf..50ab3e93e 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: t-dll.cc,v 1.115 2003/06/24 01:38:03 steve Exp $" +#ident "$Id: t-dll.cc,v 1.116 2003/07/05 20:42:08 steve Exp $" #endif # include "config.h" @@ -292,6 +292,8 @@ static ivl_nexus_t nexus_sig_make(ivl_signal_t net, unsigned pin) case IVL_SIT_SUPPLY1: drive = IVL_DR_SUPPLY; break; + default: + break; } tmp->ptrs_[0].drive0 = drive; tmp->ptrs_[0].drive1 = drive; @@ -315,6 +317,8 @@ static void nexus_sig_add(ivl_nexus_t nex, ivl_signal_t net, unsigned pin) case IVL_SIT_SUPPLY1: drive = IVL_DR_SUPPLY; break; + default: + break; } nex->ptrs_[top-1].type_= __NEXUS_PTR_SIG; @@ -2132,6 +2136,9 @@ extern const struct target tgt_dll = { "dll", &dll_target_obj }; /* * $Log: t-dll.cc,v $ + * Revision 1.116 2003/07/05 20:42:08 steve + * Fix some enumeration warnings. + * * Revision 1.115 2003/06/24 01:38:03 steve * Various warnings fixed. * diff --git a/t-xnf.cc b/t-xnf.cc index fd4658677..5322803e9 100644 --- a/t-xnf.cc +++ b/t-xnf.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: t-xnf.cc,v 1.48 2003/06/24 01:38:03 steve Exp $" +#ident "$Id: t-xnf.cc,v 1.49 2003/07/05 20:42:08 steve Exp $" #endif # include "config.h" @@ -425,6 +425,9 @@ void target_xnf::draw_carry(ostream &os, const NetAddSub*gate, unsigned idx, case LOWER_W_CO: draw_pin(os, "COUT0", gate->pin_Cout()); break; + + default: + assert(0); } // Connect the Cout, this will connect to the next Cin @@ -706,6 +709,9 @@ void target_xnf::lpm_ff(const NetFF*net) case verinum::V1: out_ << "INIT=S, "; break; + + default: + break; } out_ << "LIBVER=2.0.0" << endl; @@ -926,6 +932,9 @@ extern const struct target tgt_xnf = { "xnf", &target_xnf_obj }; /* * $Log: t-xnf.cc,v $ + * Revision 1.49 2003/07/05 20:42:08 steve + * Fix some enumeration warnings. + * * Revision 1.48 2003/06/24 01:38:03 steve * Various warnings fixed. *