HomeFreeBSD

editors/madedit: unbreak with clang 4.0

Description

editors/madedit: unbreak with clang 4.0

src/MadOptionsDialog.cpp:1179:56: error: ordered comparison between pointer and zero

('const wxChar *' (aka 'const wchar_t *') and 'int')
  if(g_SelectedCommandItem->cmddata->menuid_name > 0)
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

src/MadOptionsDialog.cpp:1277:42: error: ordered comparison between pointer and zero

('const wxChar *' (aka 'const wchar_t *') and 'int')
      if(tid->cmddata->menuid_name > 0)
         ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

PR: 216076
Reported by: antoine (via exp-run)

Details

Provenance
jbeichAuthored on
Parents
rP432970: audio/mixxx: unbreak with clang 4.0
Branches
Unknown
Tags
Unknown