boost1.42 (1.42.0-4) jam-wall-clean.patch

Summary

 tools/jam/src/class.c   |    2 +-
 tools/jam/src/expand.c  |    2 +-
 tools/jam/src/hash.c    |    2 +-
 tools/jam/src/hcache.c  |    2 +-
 tools/jam/src/modules.c |    2 +-
 tools/jam/src/native.c  |    2 +-
 tools/jam/src/search.c  |    2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

    
download this patch

Patch contents

--- boost1.38-1.38.0.orig/tools/jam/src/expand.c
+++ boost1.38-1.38.0/tools/jam/src/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
--- boost1.38-1.38.0.orig/tools/jam/src/class.c
+++ boost1.38-1.38.0/tools/jam/src/class.c
@@ -119,7 +119,7 @@
     }
     else
     {
-        hashenter( classes, (HASHDATA * *)&pp );
+        (void)hashenter( classes, (HASHDATA * *)&pp );
     }
     check_defined( bases );
 
--- boost1.38-1.38.0.orig/tools/jam/src/modules.c
+++ boost1.38-1.38.0/tools/jam/src/modules.c
@@ -143,7 +143,7 @@
     {
         char * s = module_names->string;
         char * * ss = &s;
-        hashenter( h, (HASHDATA * *)&ss );
+        (void)hashenter( h, (HASHDATA * *)&ss );
     }
 
     PROFILE_EXIT( IMPORT_MODULE );
--- boost1.38-1.38.0.orig/tools/jam/src/search.c
+++ boost1.38-1.38.0/tools/jam/src/search.c
@@ -213,7 +213,7 @@
         /* CONSIDER: we probably should issue a warning is another file
            is explicitly bound to the same location. This might break
            compatibility, though. */
-        hashenter( explicit_bindings, (HASHDATA * *)&ba );
+        (void)hashenter( explicit_bindings, (HASHDATA * *)&ba );
     }
 
     /* prepare a call to BINDRULE if the variable is set */
--- boost1.38-1.38.0.orig/tools/jam/src/native.c
+++ boost1.38-1.38.0/tools/jam/src/native.c
@@ -31,6 +31,6 @@
         }
         n.procedure = parse_make( f, P0, P0, P0, C0, C0, 0 );
         n.version = version;
-        hashenter(m->native_rules, (HASHDATA**)&np);
+        (void)hashenter(m->native_rules, (HASHDATA**)&np);
     }
 }
--- boost1.38-1.38.0.orig/tools/jam/src/hash.c
+++ boost1.38-1.38.0/tools/jam/src/hash.c
@@ -448,7 +448,7 @@
         run = here;
     }
 
-    printf( "%s table: %d+%d+%d (%dK+%ldK) items+table+hash, %f density\n",
+    printf( "%s table: %d+%d+%d (%dK+%zdK) items+table+hash, %f density\n",
         hp->name,
         count,
         hp->items.nel,
--- boost1.38-1.38.0.orig/tools/jam/src/hcache.c
+++ boost1.38-1.38.0/tools/jam/src/hcache.c
@@ -166,7 +166,7 @@
 {
     if ( !s )
         s = "";
-    fprintf( f, "%lu\t%s\n", strlen( s ), s );
+    fprintf( f, "%zu\t%s\n", strlen( s ), s );
 }