Bug 230948 - graphics/lprof-devel: fails to build with clang 7
Summary: graphics/lprof-devel: 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: Dmitry Marakasov
URL:
Keywords: needs-patch
Depends on:
Blocks: 230355
  Show dependency treegraph
 
Reported: 2018-08-27 14:34 UTC by Jan Beich
Modified: 2018-08-29 09:16 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (amdmi3)


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:34:31 UTC
$ poudriere jail -cj clang7 -a amd64 -v projects/clang700-import -m svn+https
$ poudriere testport -j clang7 graphics/lprof-devel
[...]
src/lprofqt/imageitem.cpp:177:69: error: ordered comparison between pointer and zero ('const void *' and 'int')
    int16lprof = (pixtype.contains(QString::fromLocal8Bit("INT16")) > 0);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/lprofqt/imageitem.cpp:178:69: error: ordered comparison between pointer and zero ('const void *' and 'int')
    int32lprof = (pixtype.contains(QString::fromLocal8Bit("INT32")) > 0);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/lprofqt/imageitem.cpp:179:69: error: ordered comparison between pointer and zero ('const void *' and 'int')
    uint8lprof = (pixtype.contains(QString::fromLocal8Bit("UINT8")) > 0);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/lprofqt/imageitem.cpp:180:70: error: ordered comparison between pointer and zero ('const void *' and 'int')
    fltpixlprof = (pixtype.contains(QString::fromLocal8Bit("FLOAT")) > 0);
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
src/lprofqt/imageitem.cpp:181:71: error: ordered comparison between pointer and zero ('const void *' and 'int')
    dblpixlprof = (pixtype.contains(QString::fromLocal8Bit("DOUBLE")) > 0);
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

http://package18.nyi.freebsd.org/data/headamd64PR230355gnucxx98-default/2018-08-26_10h16m34s/logs/errors/lprof-devel-20080514_13.log
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-08-29 09:16:52 UTC
A commit references this bug:

Author: amdmi3
Date: Wed Aug 29 09:16:21 UTC 2018
New revision: 478345
URL: https://svnweb.freebsd.org/changeset/ports/478345

Log:
  - Fix build with clang 7

  PR:		230948
  Reported by:	jbeich

Changes:
  head/graphics/lprof-devel/files/patch-src_lprofqt_imageitem.cpp