@@ -780,7 +780,6 @@ AttrDescriptor::ExpandedTypeName(std::string & s) const
780780const char *
781781AttrDescriptor::GenerateExpress (std::string &buf) const
782782{
783- char tmp[BUFSIZ ];
784783 std::string sstr;
785784 buf = AttrExprDefStr (sstr);
786785 buf.append (" ;\n " );
@@ -877,8 +876,6 @@ EnumTypeDescriptor::GenerateExpress (std::string &buf) const
877876 buf.append (" = ENUMERATION OF \n (" );
878877 const char *desc = Description ();
879878 const char *ptr = &(desc[16 ]);
880- int count;
881- int i;
882879 int all_comments = 1 ;
883880
884881 while (*ptr != ' \0 ' )
@@ -898,8 +895,8 @@ EnumTypeDescriptor::GenerateExpress (std::string &buf) const
898895 // count is # of WHERE rules
899896 if (_where_rules != 0 )
900897 {
901- count = _where_rules->Count ();
902- for (i = 0 ; i < count; i++) // print out each UNIQUE rule
898+ int count = _where_rules->Count ();
899+ for (int i = 0 ; i < count; i++) // print out each UNIQUE rule
903900 {
904901 if ( !(*(_where_rules))[i]->_label .size () )
905902 all_comments = 0 ;
@@ -910,7 +907,7 @@ EnumTypeDescriptor::GenerateExpress (std::string &buf) const
910907 else
911908 buf.append (" WHERE\n " );
912909
913- for (i = 0 ; i < count; i++) // print out each WHERE rule
910+ for (int i = 0 ; i < count; i++) // print out each WHERE rule
914911 {
915912 if ( !(*(_where_rules))[i]->_comment .empty () )
916913 {
@@ -980,7 +977,6 @@ EntityDescriptor::~EntityDescriptor ()
980977const char *
981978EntityDescriptor::GenerateExpress (std::string &buf) const
982979{
983- char tmp[BUFSIZ ];
984980 std::string sstr;
985981 int count;
986982 int i;
@@ -1600,8 +1596,6 @@ TypeDescriptor::GenerateExpress (std::string &buf) const
16001596 buf.append (" = " );
16011597 const char *desc = Description ();
16021598 const char *ptr = desc;
1603- int count;
1604- int i;
16051599 int all_comments = 1 ;
16061600
16071601 while (*ptr != ' \0 ' )
@@ -1623,8 +1617,8 @@ TypeDescriptor::GenerateExpress (std::string &buf) const
16231617 // count is # of WHERE rules
16241618 if (_where_rules != 0 )
16251619 {
1626- count = _where_rules->Count ();
1627- for (i = 0 ; i < count; i++) // print out each UNIQUE rule
1620+ int count = _where_rules->Count ();
1621+ for (int i = 0 ; i < count; i++) // print out each UNIQUE rule
16281622 {
16291623 if ( !(*(_where_rules))[i]->_label .size () )
16301624 all_comments = 0 ;
@@ -1635,7 +1629,7 @@ TypeDescriptor::GenerateExpress (std::string &buf) const
16351629 else
16361630 buf.append (" WHERE\n " );
16371631
1638- for (i = 0 ; i < count; i++) // print out each WHERE rule
1632+ for (int i = 0 ; i < count; i++) // print out each WHERE rule
16391633 {
16401634 if ( !(*(_where_rules))[i]->_comment .empty () )
16411635 {
0 commit comments