Project not found: openSUSE:Factory:Staging:adi:44

File boost-jam-codecleanup.diff of Package boost-jam

--- expand.c
+++ expand.c
@@ -82,7 +82,7 @@
     int depth;
 
     if ( DEBUG_VAREXP )
-        printf( "expand '%.*s'\n", end - in, in );
+        printf( "expand '%.*s'\n", (int)(end - in), in );
 
     /* This gets a lot of cases: $(<) and $(>). */
     if
--- hash.c
+++ hash.c
@@ -454,6 +454,6 @@
         hp->items.nel,
         hp->tab.nel,
         hp->items.nel * hp->items.size / 1024,
-        hp->tab.nel * sizeof( ITEM ** ) / 1024,
+        (long)(hp->tab.nel * sizeof( ITEM ** ) / 1024),
         (float)count / (float)sets );
 }
--- hash.h
+++ hash.h
@@ -19,7 +19,7 @@
 void          hashenumerate( struct hash * hp, void (* f)( void *, void * ), void * data );
 int           hash_free    ( struct hash * hp, HASHDATA * data);
 
-#define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) )
-#define hashcheck( hp, data ) hashitem( hp, data, 0 )
+#define hashenter( hp, data ) ( !hashitem( (hp), (data), !0 ) )
+#define hashcheck( hp, data ) hashitem( (hp), (data), 0 )
 
 #endif
openSUSE Build Service is sponsored by