[warning-fix][-Wuninitialized] warnings that only show up on release builds?!

This commit is contained in:
Mark Pictor
2011-08-21 17:52:17 -04:00
parent 5fb41d372f
commit cc155a8e29
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -3105,7 +3105,7 @@ print_typechain( FILE * f, const Type t, char * buf, Schema schema ) {
/* the type_count variable is there for debugging purposes */
const char * ctype = TYPEget_ctype( t );
Type base;
Type base = 0;
int count = type_count++;
char typename_buf[MAX_LEN];
@@ -3663,7 +3663,7 @@ ENTITYprint_new( Entity entity, FILES * files, Schema schema, int externMap ) {
const char * n;
Linked_List wheres;
/* char buf[BUFSIZ],buf2[BUFSIZ]; */
char * whereRule, *whereRule_formatted;
char * whereRule, *whereRule_formatted = "";
int whereRule_formatted_size = 0;
char * ptr, *ptr2;
char * uniqRule, *uniqRule_formatted;
@@ -4749,7 +4749,7 @@ if( TYPEget_head( type ) ) {
void
TYPEprint_new( const Type type, FILE * create, Schema schema ) {
Linked_List wheres;
char * whereRule, *whereRule_formatted;
char * whereRule, *whereRule_formatted = "";
int whereRule_formatted_size = 0;
char * ptr, *ptr2;
+1 -1
View File
@@ -85,7 +85,7 @@ MatchType OrList::matchORs( EntNode * ents )
{
int count;
EntList * child = childList;
MatchType retval;
MatchType retval = UNKNOWN;
for( count = 0; count < numchildren; count++, child = child->next ) {
+1 -1
View File
@@ -53,7 +53,7 @@ ostream & operator << ( ostream & os, MultList & mlist )
*/
{
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;