[Bug 199916] games/wxlauncher: fails to build with WX3 on 8.4R and 9.3R

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 4 10:23:29 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199916

--- Comment #2 from Jan Beich <jbeich at FreeBSD.org> ---
Created attachment 156330
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=156330&action=edit
unbreak -std=c++11 on FreeBSD 10+

  // sys/_null.h on FreeBSD
  #if __cplusplus >= 201103L
  #define    NULL    nullptr

-std=c++11 with above NULL definition turns the following warning into an
error:

  code/apis/ProfileManager.cpp:310:11: warning:
        comparison between NULL and non-pointer (NULL and 'int')
[-Wnull-arithmetic]
                                  (NULL != lastDownloadNews.ParseFormat(
                                   ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

becomes

  code/apis/ProfileManager.cpp:310:11: error:
        use of overloaded operator '!=' is ambiguous (with operand types
'nullptr_t'
        and 'wxAnyStrPtr')
                                  (NULL != lastDownloadNews.ParseFormat(
                                   ~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list