Removes several times warning C4133 in MSVC.
* Removes incompatible types from '...' to 'Generic' warning.
This commit is contained in:
+2
-2
@@ -426,10 +426,10 @@ REFout( Dictionary refdict, Linked_List reflist, char * type, int level ) {
|
||||
list = ( Linked_List )DICTlookup( dict, r->schema->symbol.name );
|
||||
if( !list ) {
|
||||
list = LISTcreate();
|
||||
DICTdefine( dict, r->schema->symbol.name, list,
|
||||
DICTdefine( dict, r->schema->symbol.name, (Generic) list,
|
||||
( Symbol * )0, OBJ_UNKNOWN );
|
||||
}
|
||||
LISTadd( list, r );
|
||||
LISTadd( list, (Generic) r );
|
||||
}
|
||||
|
||||
/* step 2: for each list, print out the renames */
|
||||
|
||||
@@ -130,10 +130,10 @@ void USEREFout( Schema schema, Dictionary refdict, Linked_List reflist, char * t
|
||||
list = ( Linked_List )DICTlookup( dict, r->schema->symbol.name );
|
||||
if( !list ) {
|
||||
list = LISTcreate();
|
||||
DICTdefine( dict, r->schema->symbol.name, list,
|
||||
DICTdefine( dict, r->schema->symbol.name, (Generic) list,
|
||||
( Symbol * )0, OBJ_UNKNOWN );
|
||||
}
|
||||
LISTadd( list, r );
|
||||
LISTadd( list, (Generic) r );
|
||||
}
|
||||
|
||||
/* step 2: for each list, print out the renames */
|
||||
@@ -1162,7 +1162,7 @@ void collectAttributes( Linked_List curList, Entity curEntity, int flagParent )
|
||||
|
||||
// parse the attributes of the parent and add to the current list
|
||||
LISTdo( ENTITYget_attributes( curEntity ), a, Variable )
|
||||
LISTadd_first( curList, a );
|
||||
LISTadd_first( curList, (Generic) a );
|
||||
LISTod;
|
||||
}
|
||||
|
||||
@@ -2254,7 +2254,7 @@ void ENTITYPrint( Entity entity, FILES * files, Schema schema ) {
|
||||
LISTod;
|
||||
}
|
||||
if( !found ) {
|
||||
LISTadd_first( nonInheritedAttrList, a );
|
||||
LISTadd_first( nonInheritedAttrList, (Generic) a );
|
||||
}
|
||||
}
|
||||
LISTod;
|
||||
|
||||
@@ -189,7 +189,7 @@ SELgetnew_dmlist( const Type type ) {
|
||||
|
||||
/* if t\'s underlying type is not already in newlist, */
|
||||
if( ! utype_member( newlist, t, 0 ) ) {
|
||||
LISTadd_last( newlist, t );
|
||||
LISTadd_last( newlist, (Generic) t );
|
||||
}
|
||||
|
||||
LISTod;
|
||||
@@ -363,9 +363,9 @@ find_duplicate_list( const Type type, Linked_List * duplicate_list ) {
|
||||
if( !utype_member( *duplicate_list, u, 1 ) ) {
|
||||
/** if not already a duplicate **/
|
||||
if( utype_member( temp, u, 1 ) ) {
|
||||
LISTadd_first( *duplicate_list, u );
|
||||
LISTadd_first( *duplicate_list, (Generic) u );
|
||||
} else {
|
||||
LISTadd_first( temp, u );
|
||||
LISTadd_first( temp, (Generic) u );
|
||||
}
|
||||
}
|
||||
LISTod;
|
||||
@@ -562,7 +562,7 @@ SEL_TYPEgetnew_attribute_list( const Type type ) {
|
||||
attrs = ENTITYget_all_attributes( cur );
|
||||
LISTdo( attrs, a, Variable )
|
||||
if( ! ATTR_LISTmember( newlist, a ) ) {
|
||||
LISTadd_first( newlist, a );
|
||||
LISTadd_first( newlist, (Generic) a );
|
||||
}
|
||||
LISTod;
|
||||
}
|
||||
@@ -952,8 +952,8 @@ ENTITYget_expanded_entities( Entity e, Linked_List l ) {
|
||||
int super_cnt = 0;
|
||||
Entity super;
|
||||
|
||||
if( ! LISTmember( l, e ) ) {
|
||||
LISTadd_first( l, e );
|
||||
if( ! LISTmember( l, (Generic) e ) ) {
|
||||
LISTadd_first( l, (Generic) e );
|
||||
}
|
||||
|
||||
if( multiple_inheritance ) {
|
||||
@@ -1004,7 +1004,7 @@ memberOfEntPrimary( Entity ent, Variable uattr )
|
||||
int result;
|
||||
|
||||
ENTITYget_first_attribs( ent, attrlist );
|
||||
result = ( LISTmember( attrlist, uattr ) != 0 );
|
||||
result = ( LISTmember( attrlist, (Generic) uattr ) != 0 );
|
||||
LIST_destroy( attrlist );
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user