[brlcad-commits] SF.net SVN: brlcad:[49827] brlcad/trunk/src/other/step/src
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <n_...@us...> - 2012-03-27 23:03:34
|
Revision: 49827 http://brlcad.svn.sourceforge.net/brlcad/?rev=49827&view=rev Author: n_reed Date: 2012-03-27 23:03:27 +0000 (Tue, 27 Mar 2012) Log Message: ----------- initialize some uninitialize variables; SCL git b9156ad Modified Paths: -------------- brlcad/trunk/src/other/step/src/cleditor/STEPfile.cc brlcad/trunk/src/other/step/src/cleditor/mgrnodearray.cc brlcad/trunk/src/other/step/src/clstepcore/collect.cc brlcad/trunk/src/other/step/src/clstepcore/match-ors.cc brlcad/trunk/src/other/step/src/clstepcore/multlist.cc brlcad/trunk/src/other/step/src/clstepcore/print.cc brlcad/trunk/src/other/step/src/exppp/exppp.c brlcad/trunk/src/other/step/src/express/resolve.c brlcad/trunk/src/other/step/src/fedex_plus/collect.cc brlcad/trunk/src/other/step/src/fedex_plus/complexlist.cc brlcad/trunk/src/other/step/src/fedex_plus/expressbuild.cc brlcad/trunk/src/other/step/src/fedex_plus/match-ors.cc brlcad/trunk/src/other/step/src/fedex_plus/multlist.cc brlcad/trunk/src/other/step/src/fedex_plus/print.cc Modified: brlcad/trunk/src/other/step/src/cleditor/STEPfile.cc =================================================================== --- brlcad/trunk/src/other/step/src/cleditor/STEPfile.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/cleditor/STEPfile.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -445,7 +445,7 @@ std::string tmpbuf; SCLP23( Application_instance ) * obj = ENTITY_NULL; - stateEnum inst_state; // used if reading working file + stateEnum inst_state = noStateSE; // used if reading working file ErrorDescriptor e; @@ -457,7 +457,6 @@ in >> c; if( _fileType == WORKING_SESSION ) { - inst_state = noStateSE; if( strchr( "CIND", c ) ) { // if there is a valid char inst_state = EntityWfState( c ); ReadTokenSeparator( in ); @@ -561,7 +560,7 @@ int total_instances = 0; int valid_insts = 0; // used for exchange file only - stateEnum inst_state; // used if reading working file + stateEnum inst_state = noStateSE; // used if reading working file _errorCount = 0; // reset error count _warningCount = 0; // reset error count @@ -582,7 +581,6 @@ in >> c; if( _fileType == WORKING_SESSION ) { - inst_state = noStateSE; if( strchr( "CIND", c ) ) { // if there is a valid char inst_state = EntityWfState( c ); ReadTokenSeparator( in, &cmtStr ); Modified: brlcad/trunk/src/other/step/src/cleditor/mgrnodearray.cc =================================================================== --- brlcad/trunk/src/other/step/src/cleditor/mgrnodearray.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/cleditor/mgrnodearray.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -220,7 +220,7 @@ } int low = 0; int high = _count - 1; - int mid; + int mid = 0; int found = 0; int curFileId; Modified: brlcad/trunk/src/other/step/src/clstepcore/collect.cc =================================================================== --- brlcad/trunk/src/other/step/src/clstepcore/collect.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/clstepcore/collect.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -96,7 +96,7 @@ */ { EntNode * node = ents, *nextnode; - AndList * alist; + AndList * alist = 0; ComplexList * clist = clists, *cl = NULL, *current; int retval; EntList * elist, *next; Modified: brlcad/trunk/src/other/step/src/clstepcore/match-ors.cc =================================================================== --- brlcad/trunk/src/other/step/src/clstepcore/match-ors.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/clstepcore/match-ors.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -85,7 +85,7 @@ { int count; EntList * child = childList; - MatchType retval; + MatchType retval = UNKNOWN; for( count = 0; count < numchildren; count++, child = child->next ) { Modified: brlcad/trunk/src/other/step/src/clstepcore/multlist.cc =================================================================== --- brlcad/trunk/src/other/step/src/clstepcore/multlist.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/clstepcore/multlist.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -120,7 +120,7 @@ * to the end of our list. */ { - EntList * newlist, *child; + EntList * newlist = 0, *child; switch( ent->join ) { case SIMPLE: Modified: brlcad/trunk/src/other/step/src/clstepcore/print.cc =================================================================== --- brlcad/trunk/src/other/step/src/clstepcore/print.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/clstepcore/print.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -53,7 +53,7 @@ */ { char jointype[7]; - int k, lastSimple; + int k, lastSimple = 0; // lastSimple - is the last child simple? If so, we need to print another // line at the end. If not, the children of last child did already. EntList * child = mlist.childList; Modified: brlcad/trunk/src/other/step/src/exppp/exppp.c =================================================================== --- brlcad/trunk/src/other/step/src/exppp/exppp.c 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/exppp/exppp.c 2012-03-27 23:03:27 UTC (rev 49827) @@ -887,7 +887,7 @@ void CASEout( struct Case_Statement_ *c, int level ) { - int len; + int len = 0; char * string; int max_indent; Modified: brlcad/trunk/src/other/step/src/express/resolve.c =================================================================== --- brlcad/trunk/src/other/step/src/express/resolve.c 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/express/resolve.c 2012-03-27 23:03:27 UTC (rev 49827) @@ -258,7 +258,7 @@ void EXP_resolve( Expression expr, Scope scope, Type typecheck ) { - Function f; + Function f = 0; Symbol * sym; Generic x; Entity e; Modified: brlcad/trunk/src/other/step/src/fedex_plus/collect.cc =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/collect.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/fedex_plus/collect.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -96,7 +96,7 @@ */ { EntNode * node = ents, *nextnode; - AndList * alist; + AndList * alist = 0; ComplexList * clist = clists, *cl = NULL, *current; int retval; EntList * elist, *next; Modified: brlcad/trunk/src/other/step/src/fedex_plus/complexlist.cc =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/complexlist.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/fedex_plus/complexlist.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -101,7 +101,7 @@ EntList * child; char * nm; EntNode * prev = list, *prev2 = NULL, *newnode; - int comp; + int comp = 0; if( ent->multiple() ) { child = ( ( MultList * )ent )->childList; Modified: brlcad/trunk/src/other/step/src/fedex_plus/expressbuild.cc =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/expressbuild.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/fedex_plus/expressbuild.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -282,7 +282,7 @@ EntNode node; // Temp var - used to check if this already contains certain values. int none_yet = TRUE; - AndOrList * ao; + AndOrList * ao = 0; SimpleList * simple; LISTdo( subs, subEnt, Entity ) Modified: brlcad/trunk/src/other/step/src/fedex_plus/match-ors.cc =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/match-ors.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/fedex_plus/match-ors.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -85,7 +85,7 @@ { int count; EntList * child = childList; - MatchType retval; + MatchType retval = UNKNOWN; for( count = 0; count < numchildren; count++, child = child->next ) { Modified: brlcad/trunk/src/other/step/src/fedex_plus/multlist.cc =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/multlist.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/fedex_plus/multlist.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -210,7 +210,7 @@ * to the end of our list. */ { - EntList * newlist, *child; + EntList * newlist = 0, *child; switch( ent->join ) { case SIMPLE: Modified: brlcad/trunk/src/other/step/src/fedex_plus/print.cc =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/print.cc 2012-03-27 22:34:15 UTC (rev 49826) +++ brlcad/trunk/src/other/step/src/fedex_plus/print.cc 2012-03-27 23:03:27 UTC (rev 49827) @@ -53,7 +53,7 @@ */ { char jointype[7]; - int k, lastSimple; + int k, lastSimple = 0; // lastSimple - is the last child simple? If so, we need to print another // line at the end. If not, the children of last child did already. EntList * child = mlist.childList; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |