From owner-svn-ports-head@freebsd.org Thu Mar 16 08:16:01 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 F3FBDD0E01F; Thu, 16 Mar 2017 08:16:00 +0000 (UTC) (envelope-from bsam@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 C37301A3B; Thu, 16 Mar 2017 08:16:00 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2G8FxWl024706; Thu, 16 Mar 2017 08:15:59 GMT (envelope-from bsam@FreeBSD.org) Received: (from bsam@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2G8FxcB024705; Thu, 16 Mar 2017 08:15:59 GMT (envelope-from bsam@FreeBSD.org) Message-Id: <201703160815.v2G8FxcB024705@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bsam set sender to bsam@FreeBSD.org using -f From: Boris Samorodov Date: Thu, 16 Mar 2017 08:15:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r436264 - head/graphics/iccexamin/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: Thu, 16 Mar 2017 08:16:01 -0000 Author: bsam Date: Thu Mar 16 08:15:59 2017 New Revision: 436264 URL: https://svnweb.freebsd.org/changeset/ports/436264 Log: Fix build with clang-4.0. Error log: ----- /wrkdirs/usr/ports/graphics/iccexamin/work/icc_examin-0.55/icc_profile_tags.cpp:352:28: error: ordered comparison between pointer and zero ('char *' and 'int') while (strchr(txt, 13) > 0) { // \r 013 0x0d ~~~~~~~~~~~~~~~ ^ ~ /wrkdirs/usr/ports/graphics/iccexamin/work/icc_examin-0.55/icc_profile_tags.cpp:357:15: error: ordered comparison between pointer and zero ('char *' and 'int') if (pos > 0) { ~~~ ^ ~ ----- Reported by: FreeBSD package builder Added: head/graphics/iccexamin/files/patch-icc_profile_tags.cpp (contents, props changed) Added: head/graphics/iccexamin/files/patch-icc_profile_tags.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/iccexamin/files/patch-icc_profile_tags.cpp Thu Mar 16 08:15:59 2017 (r436264) @@ -0,0 +1,17 @@ +--- icc_profile_tags.cpp.orig 2017-03-15 08:21:33.000000000 +0000 ++++ icc_profile_tags.cpp 2017-03-15 08:21:33.000000000 +0000 +@@ -349,12 +349,12 @@ + # ifdef DEBUG_ICCTAG + DBG_NUM_S ((int)strchr(txt, 13)) + # endif +- while (strchr(txt, 13) > 0) { // \r 013 0x0d ++ while (strchr(txt, 13)) { // \r 013 0x0d + pos = strchr(txt, 13); + # ifdef DEBUG_ICCTAG + //cout << (int)pos << " "; DBG + # endif +- if (pos > 0) { ++ if (pos) { + if (*(pos+1) == '\n') + *pos = ' '; + else