From owner-svn-ports-head@freebsd.org Wed Feb 1 05:25:04 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04628CCD078; Wed, 1 Feb 2017 05:25:04 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8AD49A4; Wed, 1 Feb 2017 05:25:03 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v115P23t086563; Wed, 1 Feb 2017 05:25:02 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v115P24Y086562; Wed, 1 Feb 2017 05:25:02 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702010525.v115P24Y086562@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 1 Feb 2017 05:25:02 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 05:25:04 -0000 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;