Bug 216221 - emulators/dosbox: fails to build with clang 4.0
Summary: emulators/dosbox: fails to build with clang 4.0
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: Alexander Kabaev
URL:
Keywords: needs-patch
Depends on:
Blocks: 216008
  Show dependency treegraph
 
Reported: 2017-01-18 09:53 UTC by Jan Beich
Modified: 2017-03-07 06:35 UTC (History)
1 user (show)

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


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-18 09:53:58 UTC
sdlmain.cpp:1137:63: error: ordered comparison between pointer and zero ('const char *' and 'int')
                sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") > 0);
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
sdlmain.cpp:1138:70: error: ordered comparison between pointer and zero ('const char *' and 'int')
                sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") > 0);
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

build log: http://sprunge.us/UeHb
regressed by: https://github.com/llvm-mirror/clang/commit/4b6ad14285f3
Comment 1 Jan Beich freebsd_committer freebsd_triage 2017-03-07 06:35:33 UTC
kan@ fixed it in ports r435580.