Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 05:25:02 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432968 - head/multimedia/vdr-plugin-epgsearch/files
Message-ID:  <201702010525.v115P24Y086562@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 05:25:02 2017
New Revision: 432968
URL: https://svnweb.freebsd.org/changeset/ports/432968

Log:
  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)

Added:
  head/multimedia/vdr-plugin-epgsearch/files/patch-clang40   (contents, props changed)

Added: head/multimedia/vdr-plugin-epgsearch/files/patch-clang40
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/vdr-plugin-epgsearch/files/patch-clang40	Wed Feb  1 05:25:02 2017	(r432968)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702010525.v115P24Y086562>