Clean up a few build warnings

pull/2/head
Timothy Pearson 12 years ago
parent d51c5c4d31
commit e90b15c55d

@ -685,7 +685,7 @@ QMakeProject::read(uchar cmd)
// fprintf(stderr,"Current QT version number: " + ver + "\n");
if (ver != "" && ver != test_version) {
ver = test_version;
fprintf(stderr,"Changed QT version number to " + test_version + "!\n");
fprintf(stderr,"Changed QT version number to %s!\n", test_version);
}
}
}

@ -98,7 +98,10 @@ QString QDir::canonicalPath() const
slashify( r );
// always make sure we go back to the current dir
::chdir( cur );
if (::chdir( cur ) < 0) {
// Error!
// FIXME
}
}
#endif /* __GLIBC__ && !PATH_MAX */
return r;

@ -641,7 +641,7 @@ void QGCache::statistics() const
#if defined(QT_DEBUG)
QString line;
line.fill( '*', 80 );
qDebug( line.ascii() );
qDebug( "%s", line.ascii() );
qDebug( "CACHE STATISTICS:" );
qDebug( "cache contains %d item%s, with a total cost of %d",
count(), count() != 1 ? "s" : "", tCost );
@ -662,7 +662,7 @@ void QGCache::statistics() const
lruList->dumps != 1 ? "have" : "has", lruList->dumpCosts );
qDebug( "Statistics from internal dictionary class:" );
dict->statistics();
qDebug( line.ascii() );
qDebug( "%s", line.ascii() );
#endif
}

@ -846,11 +846,11 @@ void QGDict::statistics() const
QString line;
line.fill( '-', 60 );
double real, ideal;
qDebug( line.ascii() );
qDebug( "%s", line.ascii() );
qDebug( "DICTIONARY STATISTICS:" );
if ( count() == 0 ) {
qDebug( "Empty!" );
qDebug( line.ascii() );
qDebug( "%s", line.ascii() );
return;
}
real = 0.0;
@ -871,7 +871,7 @@ void QGDict::statistics() const
while ( b-- )
*pbuf++ = '*';
*pbuf = '\0';
qDebug( buf );
qDebug( "%s", buf );
i++;
}
qDebug( "Array size = %d", size() );
@ -879,7 +879,7 @@ void QGDict::statistics() const
qDebug( "Real dist = %g", real );
qDebug( "Rand dist = %g", ideal );
qDebug( "Real/Rand = %g", real/ideal );
qDebug( line.ascii() );
qDebug( "%s", line.ascii() );
#endif // QT_DEBUG
}

Loading…
Cancel
Save