Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 May 2015 10:23:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 199916] games/wxlauncher: fails to build with WX3 on 8.4R and 9.3R
Message-ID:  <bug-199916-13-wbrIieAIZq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-199916-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-199916-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199916

--- Comment #2 from Jan Beich <jbeich@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199916-13-wbrIieAIZq>