Fix some gcc 4.6 warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29933 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2ce1dfedaa
commit
b5feacfaac
2 changed files with 9 additions and 5 deletions
|
@ -190,9 +190,14 @@ QString System::osVersionString(void)
|
|||
#else
|
||||
long cores = sysconf(_SC_NPROCESSORS_ONLN);
|
||||
#endif
|
||||
result = QString("CPU: %1, %2 processor(s)").arg(u.machine).arg(cores);
|
||||
result += QString("<br/>System: %2<br/>Release: %3<br/>Version: %4")
|
||||
.arg(u.sysname).arg(u.release).arg(u.version);
|
||||
if(ret != -1) {
|
||||
result = QString("CPU: %1, %2 processor(s)").arg(u.machine).arg(cores);
|
||||
result += QString("<br/>System: %2<br/>Release: %3<br/>Version: %4")
|
||||
.arg(u.sysname).arg(u.release).arg(u.version);
|
||||
}
|
||||
else {
|
||||
result = QString("(Error when retrieving system information)");
|
||||
}
|
||||
#if defined(Q_OS_MACX)
|
||||
SInt32 major;
|
||||
SInt32 minor;
|
||||
|
|
|
@ -1065,8 +1065,7 @@ void RbUtilQt::uninstallBootloader(void)
|
|||
connect(bl, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int)));
|
||||
connect(bl, SIGNAL(logProgress(int, int)), logger, SLOT(setProgress(int, int)));
|
||||
|
||||
int result;
|
||||
result = bl->uninstall();
|
||||
bl->uninstall();
|
||||
|
||||
logger->setFinished();
|
||||
|
||||
|
|
Loading…
Reference in a new issue