[Pkg-owncloud-commits] [owncloud-client] 173/498: OS X: Fix a few warnings
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit c98bcc8e9e4e14f7288d5be09701cf96f932f29a
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date: Tue Jun 16 16:37:04 2015 +0200
OS X: Fix a few warnings
---
src/gui/folder.cpp | 1 +
src/gui/folderwatcher_mac.cpp | 6 +++++-
src/libsync/utility.cpp | 1 +
src/libsync/utility_mac.cpp | 1 +
4 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index f51bfbb..382a9cd 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -553,6 +553,7 @@ void Folder::slotWatchedPathChanged(const QString& path)
// the sync is doing to filter out our own changes.
bool ownChange = false;
#ifdef Q_OS_MAC
+ Q_UNUSED(path)
// On OSX the folder watcher does not report changes done by our
// own process. Therefore nothing needs to be done here!
#else
diff --git a/src/gui/folderwatcher_mac.cpp b/src/gui/folderwatcher_mac.cpp
index 9907754..9a16538 100644
--- a/src/gui/folderwatcher_mac.cpp
+++ b/src/gui/folderwatcher_mac.cpp
@@ -47,11 +47,15 @@ static void callback(
const FSEventStreamEventFlags eventFlags[],
const FSEventStreamEventId eventIds[])
{
+ Q_UNUSED(streamRef)
+ Q_UNUSED(eventFlags)
+ Q_UNUSED(eventIds)
+
qDebug() << "FolderWatcherPrivate::callback by OS X";
QStringList paths;
CFArrayRef eventPaths = (CFArrayRef)eventPathsVoid;
- for (int i = 0; i < numEvents; ++i) {
+ for (int i = 0; i < static_cast<int>(numEvents); ++i) {
CFStringRef path = reinterpret_cast<CFStringRef>(CFArrayGetValueAtIndex(eventPaths, i));
QString qstring;
diff --git a/src/libsync/utility.cpp b/src/libsync/utility.cpp
index 42da7d6..6182911 100644
--- a/src/libsync/utility.cpp
+++ b/src/libsync/utility.cpp
@@ -183,6 +183,7 @@ void Utility::setLaunchOnStartup(const QString &appName, const QString& guiName,
qint64 Utility::freeDiskSpace(const QString &path, bool *ok)
{
#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_FREEBSD_KERNEL) || defined(Q_OS_NETBSD)
+ Q_UNUSED(ok)
struct statvfs stat;
statvfs(path.toUtf8().data(), &stat);
return (qint64) stat.f_bavail * stat.f_frsize;
diff --git a/src/libsync/utility_mac.cpp b/src/libsync/utility_mac.cpp
index d8f87ea..2397f7c 100644
--- a/src/libsync/utility_mac.cpp
+++ b/src/libsync/utility_mac.cpp
@@ -69,6 +69,7 @@ bool hasLaunchOnStartup_private(const QString &)
void setLaunchOnStartup_private(const QString &appName, const QString& guiName, bool enable)
{
+ Q_UNUSED(appName)
Q_UNUSED(guiName)
QString filePath = QDir(QCoreApplication::applicationDirPath()+QLatin1String("/../..")).absolutePath();
CFStringRef folderCFStr = CFStringCreateWithCString(0, filePath.toUtf8().data(), kCFStringEncodingUTF8);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list