Skip to content

Commit 92ed625

Browse files
author
Nicholas Reed
committed
warning fixes from SCL git 166425a and dcdd77a
1 parent 8b0faeb commit 92ed625

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/exppp/exppp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,10 @@ REFout( Dictionary refdict, Linked_List reflist, char * type, int level ) {
414414
list = ( Linked_List )DICTlookup( dict, r->schema->symbol.name );
415415
if( !list ) {
416416
list = LISTcreate();
417-
DICTdefine( dict, r->schema->symbol.name, list,
417+
DICTdefine( dict, r->schema->symbol.name, ( Generic ) list,
418418
( Symbol * )0, OBJ_UNKNOWN );
419419
}
420-
LISTadd( list, r );
420+
LISTadd( list, ( Generic ) r );
421421
}
422422

423423
/* step 2: for each list, print out the renames */

src/express/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void ( *ERRORusage_function )( void );
9999
* dump the buffer */
100100

101101
static struct heap_element {
102-
int line;
102+
unsigned int line;
103103
char * msg;
104104
} heap[ERROR_MAX_ERRORS + 1]; /**< NOTE! element 0 is purposely ignored, and
105105
* an additional element is at the end. This

src/fedex_plus/classes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ void USEREFout( Schema schema, Dictionary refdict, Linked_List reflist, char * t
139139
list = ( Linked_List )DICTlookup( dict, r->schema->symbol.name );
140140
if( !list ) {
141141
list = LISTcreate();
142-
DICTdefine( dict, r->schema->symbol.name, list,
142+
DICTdefine( dict, r->schema->symbol.name, ( Generic ) list,
143143
( Symbol * )0, OBJ_UNKNOWN );
144144
}
145-
LISTadd( list, r );
145+
LISTadd( list, ( Generic ) r );
146146
}
147147

148148
/* step 2: for each list, print out the renames */

src/fedex_plus/selects.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ SELgetnew_dmlist( const Type type ) {
190190

191191
/* if t\'s underlying type is not already in newlist, */
192192
if( ! utype_member( newlist, t, 0 ) ) {
193-
LISTadd_last( newlist, t );
193+
LISTadd_last( newlist, ( Generic ) t );
194194
}
195195

196196
LISTod;
@@ -362,9 +362,9 @@ find_duplicate_list( const Type type, Linked_List * duplicate_list ) {
362362
if( !utype_member( *duplicate_list, u, 1 ) ) {
363363
/** if not already a duplicate **/
364364
if( utype_member( temp, u, 1 ) ) {
365-
LISTadd_first( *duplicate_list, u );
365+
LISTadd_first( *duplicate_list, ( Generic ) u );
366366
} else {
367-
LISTadd_first( temp, u );
367+
LISTadd_first( temp, ( Generic ) u );
368368
}
369369
}
370370
LISTod;
@@ -562,7 +562,7 @@ SEL_TYPEgetnew_attribute_list( const Type type ) {
562562
attrs = ENTITYget_all_attributes( cur );
563563
LISTdo( attrs, a, Variable )
564564
if( ! ATTR_LISTmember( newlist, a ) ) {
565-
LISTadd_first( newlist, a );
565+
LISTadd_first( newlist, ( Generic ) a );
566566
}
567567
LISTod;
568568
}
@@ -954,8 +954,8 @@ ENTITYget_expanded_entities( Entity e, Linked_List l ) {
954954
int super_cnt = 0;
955955
Entity super;
956956

957-
if( ! LISTmember( l, e ) ) {
958-
LISTadd_first( l, e );
957+
if( ! LISTmember( l, ( Generic ) e ) ) {
958+
LISTadd_first( l, ( Generic ) e );
959959
}
960960

961961
if( multiple_inheritance ) {
@@ -1006,7 +1006,7 @@ memberOfEntPrimary( Entity ent, Variable uattr )
10061006
int result;
10071007

10081008
ENTITYget_first_attribs( ent, attrlist );
1009-
result = ( LISTmember( attrlist, uattr ) != 0 );
1009+
result = ( LISTmember( attrlist, ( Generic ) uattr ) != 0 );
10101010
LIST_destroy( attrlist );
10111011
return result;
10121012
}

0 commit comments

Comments
 (0)