Clean up a few build warnings

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

@ -685,7 +685,7 @@ QMakeProject::read(uchar cmd)
// fprintf(stderr,"Current QT version number: " + ver + "\n"); // fprintf(stderr,"Current QT version number: " + ver + "\n");
if (ver != "" && ver != test_version) { if (ver != "" && ver != test_version) {
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 ); slashify( r );
// always make sure we go back to the current dir // always make sure we go back to the current dir
::chdir( cur ); if (::chdir( cur ) < 0) {
// Error!
// FIXME
}
} }
#endif /* __GLIBC__ && !PATH_MAX */ #endif /* __GLIBC__ && !PATH_MAX */
return r; return r;

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

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

Loading…
Cancel
Save