Fix format-related warnings during build of jam.

This commit is contained in:
Oliver Tappe 2014-08-10 17:16:21 +02:00
parent e5a1aa929a
commit bc712e7525
4 changed files with 6 additions and 6 deletions

View File

@ -297,7 +297,7 @@ execwait()
break;
if( i == MAXJOBS )
printf( "jam: waif child process %ld found, ignoring it!\n", w );
printf( "jam: waif child process %d found, ignoring it!\n", w );
} while( i == MAXJOBS );
# ifdef USE_EXECNT

View File

@ -81,7 +81,7 @@ var_expand(
int depth;
if( DEBUG_VAREXP )
printf( "expand '%.*s'\n", end - in, in );
printf( "expand '%.*s'\n", (int)(end - in), in );
/* This gets alot of cases: $(<) and $(>) */

View File

@ -252,6 +252,6 @@ hashstat( struct hash *hp )
hp->items.nel,
hp->tab.nel,
hp->items.nel * hp->items.size / 1024,
hp->tab.nel * sizeof( ITEM ** ) / 1024,
(int)(hp->tab.nel * sizeof( ITEM ** ) / 1024),
(float)count / (float)sets );
}

View File

@ -313,10 +313,10 @@ hcache_done()
else if (c->age > maxage)
continue;
sprintf(includes_count_str, "%lu", list_length(c->includes));
sprintf(hdrscan_count_str, "%lu", list_length(c->hdrscan));
sprintf(includes_count_str, "%u", list_length(c->includes));
sprintf(hdrscan_count_str, "%u", list_length(c->hdrscan));
sprintf(time_str, "%lu", c->time);
sprintf(age_str, "%lu", c->age);
sprintf(age_str, "%u", c->age);
write_netstring(f, CACHE_RECORD_HEADER);
write_netstring(f, c->boundname);