Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 12:58:41 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r433028 - branches/2017Q1/multimedia/vdr-plugin-epgsearch/files
Message-ID:  <201702011258.v11CwfVY077341@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 12:58:40 2017
New Revision: 433028
URL: https://svnweb.freebsd.org/changeset/ports/433028

Log:
  MFH: r432968
  
  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)
  Approved by:	ports-secteam blanket

Added:
  branches/2017Q1/multimedia/vdr-plugin-epgsearch/files/patch-clang40
     - copied unchanged from r432968, head/multimedia/vdr-plugin-epgsearch/files/patch-clang40
Modified:
Directory Properties:
  branches/2017Q1/   (props changed)

Copied: branches/2017Q1/multimedia/vdr-plugin-epgsearch/files/patch-clang40 (from r432968, head/multimedia/vdr-plugin-epgsearch/files/patch-clang40)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2017Q1/multimedia/vdr-plugin-epgsearch/files/patch-clang40	Wed Feb  1 12:58:40 2017	(r433028, copy of r432968, head/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;



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