[warning-fix][-Wuninitialized] warnings that only show up on release builds?!
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user