kdecore: compiler warning fix

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-05-16 00:59:53 +00:00
parent 48e8597429
commit 39b30dbb18
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ KFileSystemType::Type determineFileSystemTypeImpl(const QByteArray& path)
} else if (buf.f_type == MSDOS_SUPER_MAGIC) { } else if (buf.f_type == MSDOS_SUPER_MAGIC) {
return KFileSystemType::Fat; return KFileSystemType::Fat;
} else if (buf.f_type == RAMFS_MAGIC) { } else if (buf.f_type == RAMFS_MAGIC) {
return KFileSystemType::Ramfs; return KFileSystemType::Ramfs;
} }
return KFileSystemType::Other; return KFileSystemType::Other;
} }

View file

@ -202,7 +202,7 @@ QString KStringHandler::obscure( const QString &str )
bool KStringHandler::isUtf8( const char *buf ) bool KStringHandler::isUtf8( const char *buf )
{ {
int i, n; int i, n;
register unsigned char c; unsigned char c;
bool gotone = false; bool gotone = false;
if (!buf) if (!buf)