aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-09-05 21:43:48 +0800
committerswills <swills@FreeBSD.org>2013-09-05 21:43:48 +0800
commit59e3ce6dd33c75b5e871bc46b9ab09598735d85a (patch)
tree98ff69c7de426f3215c0682e0025a3fbe5fe71fa /multimedia
parentbdac805252e3cab3deb6b79cca5f7cb52ad4cd2e (diff)
downloadfreebsd-ports-gnome-59e3ce6dd33c75b5e871bc46b9ab09598735d85a.tar.gz
freebsd-ports-gnome-59e3ce6dd33c75b5e871bc46b9ab09598735d85a.tar.zst
freebsd-ports-gnome-59e3ce6dd33c75b5e871bc46b9ab09598735d85a.zip
- Fix build with clang
PR: ports/181788 Approved by: arved (maintainer, via private mail)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/kaffeine/files/patch-clang24
1 files changed, 24 insertions, 0 deletions
diff --git a/multimedia/kaffeine/files/patch-clang b/multimedia/kaffeine/files/patch-clang
new file mode 100644
index 000000000000..1f80ab550c7b
--- /dev/null
+++ b/multimedia/kaffeine/files/patch-clang
@@ -0,0 +1,24 @@
+--- src/dvb/dvbepg.cpp.orig 2011-04-17 19:17:19.000000000 +0000
++++ src/dvb/dvbepg.cpp 2013-09-04 01:48:35.479500850 +0000
+@@ -690,15 +690,15 @@
+ // 1980-01-06T000000 minus 15 secs (= UTC - GPS in 2011)
+ QDateTime baseDateTime = QDateTime(QDate(1980, 1, 5), QTime(23, 59, 45), Qt::UTC);
+
+- for (AtscEitSectionEntry entry = eitSection.entries(); (entryCount > 0) && entry.isValid();
+- --entryCount, entry.advance()) {
++ for (AtscEitSectionEntry eitEntry = eitSection.entries();
++ (entryCount > 0) && eitEntry.isValid(); --entryCount, eitEntry.advance()) {
+ DvbEpgEntry epgEntry;
+ epgEntry.channel = channel;
+- epgEntry.begin = baseDateTime.addSecs(entry.startTime());
+- epgEntry.duration = QTime().addSecs(entry.duration());
+- epgEntry.title = entry.title();
++ epgEntry.begin = baseDateTime.addSecs(eitEntry.startTime());
++ epgEntry.duration = QTime().addSecs(eitEntry.duration());
++ epgEntry.title = eitEntry.title();
+
+- quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(entry.eventId()));
++ quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(eitEntry.eventId()));
+ DvbSharedEpgEntry entry = epgEntries.value(id);
+
+ if (entry.isValid() && (entry->channel == epgEntry.channel) &&