Bug 216632 - emulators/mednafen: fails to build with clang 4.0
Summary: emulators/mednafen: fails to build with clang 4.0
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords: needs-patch
Depends on:
Blocks: 216008
  Show dependency treegraph
 
Reported: 2017-01-30 23:20 UTC by Jan Beich
Modified: 2018-08-11 03:14 UTC (History)
3 users (show)

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


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 2017-01-30 23:20:39 UTC
ines.cpp:330:22: error: ordered comparison between pointer and zero ('const char *' and 'int')
 while(moo[x].input1 > 0 || moo[x].input2 > 0 || moo[x].inputfc > 0)
       ~~~~~~~~~~~~~ ^ ~
ines.cpp:330:43: error: ordered comparison between pointer and zero ('const char *' and 'int')
 while(moo[x].input1 > 0 || moo[x].input2 > 0 || moo[x].inputfc > 0)
                            ~~~~~~~~~~~~~ ^ ~
ines.cpp:330:65: error: ordered comparison between pointer and zero ('const char *' and 'int')
 while(moo[x].input1 > 0 || moo[x].input2 > 0 || moo[x].inputfc > 0)
                                                 ~~~~~~~~~~~~~~ ^ ~

build log: http://package18.nyi.freebsd.org/data/headamd64PR216008-default/2017-01-29_16h09m05s/logs/errors/mednafen-0.9.38.7,1.log
regressed by: https://github.com/llvm-mirror/clang/commit/4b6ad14285f3
Comment 1 Walter Schwarzenfeld 2018-01-23 01:54:53 UTC
Additional info:
We have version 0.9.45.1,1.

Port does not compile on 10.4 and 11.1 with c++11-lib.
But compiles fine with c++11-lang.
Comment 2 Walter Schwarzenfeld 2018-01-23 01:55:53 UTC
Forgot: with clang40.
Comment 3 strangeqargo 2018-03-06 11:53:51 UTC
By the way 1.21.0-UNSTABLE builds just fine
https://github.com/digitalist/freebsd-ports/commit/b3daa91f6bd37e1bbd46655a4116a6b361e1f9ca