Bug 230944 - lang/kturtle-kde4: fails to build with clang 7
Summary: lang/kturtle-kde4: fails to build with clang 7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords: needs-patch
Depends on:
Blocks: 230355
  Show dependency treegraph
 
Reported: 2018-08-27 14:24 UTC by Jan Beich
Modified: 2018-09-07 10:06 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2018-08-27 14:24:56 UTC
$ poudriere jail -cj clang7 -a amd64 -v projects/clang700-import -m svn+https
$ poudriere testport -j clang7 lang/kturtle-kde4
[...]
src/canvas.cpp:212:49: error: ordered comparison between pointer and zero ('const void *' and 'int')
        textFont->setBold(extra.contains(i18n("bold")) > 0);
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/canvas.cpp:213:53: error: ordered comparison between pointer and zero ('const void *' and 'int')
        textFont->setItalic(extra.contains(i18n("italic")) > 0);
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/canvas.cpp:214:59: error: ordered comparison between pointer and zero ('const void *' and 'int')
        textFont->setUnderline(extra.contains(i18n("underline")) > 0);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/canvas.cpp:215:57: error: ordered comparison between pointer and zero ('const void *' and 'int')
        textFont->setOverline(extra.contains(i18n("overline")) > 0);
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/canvas.cpp:216:59: error: ordered comparison between pointer and zero ('const void *' and 'int')
        textFont->setStrikeOut(extra.contains(i18n("strikeout")) > 0);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

http://package18.nyi.freebsd.org/data/headamd64PR230355gnucxx98-default/2018-08-26_10h16m34s/logs/errors/kturtle-kde4-4.14.3_3.log
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-08-28 11:00:05 UTC
A commit references this bug:

Author: adridg
Date: Tue Aug 28 10:59:46 UTC 2018
New revision: 478298
URL: https://svnweb.freebsd.org/changeset/ports/478298

Log:
  Fix build with clang7

  PR:		230944
  Reported by:	jbeich

Changes:
  head/lang/kturtle-kde4/files/
  head/lang/kturtle-kde4/files/patch-src_canvas.cpp