From 39b30dbb185f66b0e4d246704e3f0255a0029722 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 16 May 2019 00:59:53 +0000 Subject: [PATCH] kdecore: compiler warning fix Signed-off-by: Ivailo Monev --- kdecore/io/kfilesystemtype_p.cpp | 2 +- kdecore/text/kstringhandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kdecore/io/kfilesystemtype_p.cpp b/kdecore/io/kfilesystemtype_p.cpp index afd17342..04d2cbca 100644 --- a/kdecore/io/kfilesystemtype_p.cpp +++ b/kdecore/io/kfilesystemtype_p.cpp @@ -87,7 +87,7 @@ KFileSystemType::Type determineFileSystemTypeImpl(const QByteArray& path) } else if (buf.f_type == MSDOS_SUPER_MAGIC) { return KFileSystemType::Fat; } else if (buf.f_type == RAMFS_MAGIC) { - return KFileSystemType::Ramfs; + return KFileSystemType::Ramfs; } return KFileSystemType::Other; } diff --git a/kdecore/text/kstringhandler.cpp b/kdecore/text/kstringhandler.cpp index fad48e24..10c10eb6 100644 --- a/kdecore/text/kstringhandler.cpp +++ b/kdecore/text/kstringhandler.cpp @@ -202,7 +202,7 @@ QString KStringHandler::obscure( const QString &str ) bool KStringHandler::isUtf8( const char *buf ) { int i, n; - register unsigned char c; + unsigned char c; bool gotone = false; if (!buf)