diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:24:48 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:24:48 +0800 |
commit | 6391addc623a361971267ff9b90b9b5c1b149a4e (patch) | |
tree | 12875bd31446b8508b40fa0f8eeb8d26b17d3690 | |
parent | f89f51047cfe3bda6eab254f5215a7bc68e16df0 (diff) | |
download | freebsd-ports-gnome-6391addc623a361971267ff9b90b9b5c1b149a4e.tar.gz freebsd-ports-gnome-6391addc623a361971267ff9b90b9b5c1b149a4e.tar.zst freebsd-ports-gnome-6391addc623a361971267ff9b90b9b5c1b149a4e.zip |
multimedia/vdr: unbreak with clang 4.0
recording.c:2090:17: error: ordered comparison between pointer and zero ('cUnbufferedFile *' and 'int')
if (Open() >= 0) {
~~~~~~ ^ ~
PR: 216058
Reported by: antoine (via exp-run)
-rw-r--r-- | multimedia/vdr/Makefile | 2 | ||||
-rw-r--r-- | multimedia/vdr/files/patch-clang40 | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/multimedia/vdr/Makefile b/multimedia/vdr/Makefile index 94629e5da08f..e7651baad7ba 100644 --- a/multimedia/vdr/Makefile +++ b/multimedia/vdr/Makefile @@ -3,7 +3,7 @@ PORTNAME= vdr PORTVERSION= 1.7.29 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= multimedia MASTER_SITES= ftp://ftp.tvdr.de/vdr/Developer/ DIST_SUBDIR= vdr diff --git a/multimedia/vdr/files/patch-clang40 b/multimedia/vdr/files/patch-clang40 new file mode 100644 index 000000000000..37e10282f78d --- /dev/null +++ b/multimedia/vdr/files/patch-clang40 @@ -0,0 +1,11 @@ +--- recording.c.orig 2012-06-09 13:57:30 UTC ++++ recording.c +@@ -2075,7 +2075,7 @@ cUnbufferedFile *cFileName::SetOffset(in + } + // found a non existing file suffix + } +- if (Open() >= 0) { ++ if (Open()) { + if (!record && Offset >= 0 && file && file->Seek(Offset, SEEK_SET) != Offset) { + LOG_ERROR_STR(fileName); + return NULL; |