diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:25:02 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:25:02 +0800 |
commit | fca963de46460ef8dcae3f26978bb07a6e1fa0f3 (patch) | |
tree | 3b3b96ed6a146e53916030953e83deabf51e969e /multimedia | |
parent | 6391addc623a361971267ff9b90b9b5c1b149a4e (diff) | |
download | freebsd-ports-gnome-fca963de46460ef8dcae3f26978bb07a6e1fa0f3.tar.gz freebsd-ports-gnome-fca963de46460ef8dcae3f26978bb07a6e1fa0f3.tar.zst freebsd-ports-gnome-fca963de46460ef8dcae3f26978bb07a6e1fa0f3.zip |
multimedia/vdr-plugin-epgsearch: unbreak with clang 4.0
createcats.c:67:42: error: ordered comparison between pointer and zero ('char *' and 'int')
if (fgets(buffer, sizeof(buffer), f) > 0) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
epgsearchext.c:1506:50: error: ordered comparison between pointer and zero ('char *' and 'int')
while (fgets(buffer, sizeof(buffer), f) > 0) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
PR: 216217
Reported by: antoine (via exp-run)
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/vdr-plugin-epgsearch/files/patch-clang40 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/multimedia/vdr-plugin-epgsearch/files/patch-clang40 b/multimedia/vdr-plugin-epgsearch/files/patch-clang40 new file mode 100644 index 000000000000..b9b6ca0ae49a --- /dev/null +++ b/multimedia/vdr-plugin-epgsearch/files/patch-clang40 @@ -0,0 +1,22 @@ +--- createcats.c.orig 2012-03-22 18:00:19 UTC ++++ createcats.c +@@ -64,7 +64,7 @@ class cReadLine { + + char *cReadLine::Read(FILE *f) + { +- if (fgets(buffer, sizeof(buffer), f) > 0) { ++ if (fgets(buffer, sizeof(buffer), f)) { + int l = strlen(buffer) - 1; + if (l >= 0 && buffer[l] == '\n') + buffer[l] = 0; +--- epgsearchext.c.orig 2012-03-22 18:00:19 UTC ++++ epgsearchext.c +@@ -1497,7 +1503,7 @@ bool cSearchExts::Load(const char *FileN + int line = 0; + char buffer[MAXPARSEBUFFER]; + result = true; +- while (fgets(buffer, sizeof(buffer), f) > 0) { ++ while (fgets(buffer, sizeof(buffer), f)) { + line++; + char *p = strchr(buffer, '#'); + if (p == buffer) *p = 0; |