Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw
kdelibs4
Fix-build-with-GCC10.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Fix-build-with-GCC10.patch of Package kdelibs4
From 80b43aaae27cfdf543483cd55d9012e37219350a Mon Sep 17 00:00:00 2001 From: Alex Richardson <arichardson.kde@gmail.com> Date: Wed, 29 Jan 2014 21:56:27 +0100 Subject: Fix build with clang If we don't cast to unsigned int clang complains with following message: error: case value evaluates to 2690980318, which cannot be narrowed to type 'int' --- dnssd/servicemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnssd/servicemodel.cpp b/dnssd/servicemodel.cpp index 6b9c92e..f819fd1 100644 --- a/dnssd/servicemodel.cpp +++ b/dnssd/servicemodel.cpp @@ -80,7 +80,7 @@ QVariant ServiceModel::data(const QModelIndex& index, int role ) const if (!index.isValid()) return QVariant(); if (!hasIndex(index.row(), index.column(), index.parent())) return QVariant(); const QList<RemoteService::Ptr> srv=d->m_browser->services(); - switch (role) { + switch ((uint)role) { case Qt::DisplayRole: switch (index.column()) { case ServiceName: return srv[index.row()]->serviceName(); -- cgit v1.1 From 05e5dfacb3c747774728124280b4646a6da9e0be Mon Sep 17 00:00:00 2001 From: Aleix Pol <aleixpol@kde.org> Date: Wed, 15 Jul 2015 17:25:18 +0200 Subject: Fix KCoreAddons build on Clang+ARM We have a set of reverse-engineered literals and one of them we're specifying it as unsigned (the rest are smaller, so it doesn't make a difference), even though the API returns a signed int. Tries to address the issue pointed out by Rohan in the mailing list. REVIEW: 124150 --- kdecore/io/kfilesystemtype_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdecore/io/kfilesystemtype_p.cpp b/kdecore/io/kfilesystemtype_p.cpp index e4043e4..3526de8 100644 --- a/kdecore/io/kfilesystemtype_p.cpp +++ b/kdecore/io/kfilesystemtype_p.cpp @@ -94,7 +94,7 @@ KFileSystemType::Type determineFileSystemTypeImpl(const QByteArray &path) //kDebug() << path << errno << strerror(errno); return KFileSystemType::Unknown; } - switch (buf.f_type) { + switch (static_cast<unsigned long>(buf.f_type)) { case NFS_SUPER_MAGIC: case AUTOFS_SUPER_MAGIC: case AUTOFSNG_SUPER_MAGIC: -- cgit v1.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor