[Bug 227951] x11-wm/icewm: Does not build due to some C++11 compilation errors
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 3 16:16:42 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227951
w.schwarzenfeld at utanet.at changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |w.schwarzenfeld at utanet.at
--- Comment #1 from w.schwarzenfeld at utanet.at ---
It also fails on 10.4. I got it to compile with USES=
compiler:c++11-lang in the Makefile and with clang50. It does not compile with
clang60.
With clang69 a lot of errors like
./ref.h:22:15: note: expanded from macro 'null'
:#define null (*(class null_ref *)0)15: note: expanded from macro 'null'
#define null (*(class null_ref *)0) ^~~~~~~~~~~~~~~~~~~~
^~~~~~~~~~~~~~~~~~~~
wmapp.cc:652:39: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
if (TEST_GRADIENT(logoutPixbuf == null))
^~~~
./ref.h:22:15: note: expanded from macro 'null'
#define null (*(class null_ref *)0)
^~~~~~~~~~~~~~~~~~~~
./ypaint.h:36:30: note: expanded from macro 'TEST_GRADIENT'
#define TEST_GRADIENT(Cond) (Cond)
^~~~
wmapp.cc:654:43: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
if (TEST_GRADIENT(switchbackPixbuf == null))
^~~~
./ref.h:22:15: note: expanded from macro 'null'
#define null (*(class null_ref *)0)
^~~~~~~~~~~~~~~~~~~~
./ypaint.h:36:30: note: expanded from macro 'TEST_GRADIENT'
#define TEST_GRADIENT(Cond) (Cond)
^~~~
wmapp.cc:656:41: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
if (TEST_GRADIENT(menubackPixbuf == null))
^~~~
./ref.h:22:15: note: expanded from macro 'null'
#define null (*(class null_ref *)0)
^~~~~~~~~~~~~~~~~~~~
./ypaint.h:36:30: note: expanded from macro 'TEST_GRADIENT'
#define TEST_GRADIENT(Cond) (Cond)
^~~~
wmapp.cc:658:40: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
if (TEST_GRADIENT(menuselPixbuf == null))
^~~~
./ref.h:22:15: note: expanded from macro 'null'
#define null (*(class null_ref *)0)
^~~~~~~~~~~~~~~~~~~~
./ypaint.h:36:30: note: expanded from macro 'TEST_GRADIENT'
#define TEST_GRADIENT(Cond) (Cond)
^~~~
wmapp.cc:660:40: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
if (TEST_GRADIENT(menusepPixbuf == null))
^~~~
./ref.h:22:15: note: expanded from macro 'null'
wmframe.cc#define null (*(class null_ref *)0)
^~~~~~~~~~~~~~~~~~~~
:./ypaint.h:36:30: note: expanded from macro 'TEST_GRADIENT'
2227#define TEST_GRADIENT(Cond) (Cond)
^~~~
wmapp.cc:664:41: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
:21 if (TEST_GRADIENT(listbackPixbuf == null) &&
^~~~
:./ref.h:22:15: note: expanded from macro 'null'
#define null (*(class null_ref *)0)warning: binding dereferenced null pointer
to reference has undefined behavior
[-Wnull-dereference]
WindowOption wo(null); ^~~~~~~~~~~~~~~~~~~~
^~~~
./ref.h:22:15: note: expanded from macro 'null'
./ypaint.h#define null (*(class null_ref *)0):36:30: note: expanded from macro
'TEST_GRADIENT'
#define TEST_GRADIENT(Cond) (Cond)
^~~~
wmapp.cc:665:66: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
(listbackPixmap = paths->loadPixmap(0, "listbg.xpm")) == null)
^~~~
./ref.h:22:15: note: expanded from macro 'null'
#define null (*(class null_ref *)0)
^~~~~~~~~~~~~~~~~~~~
wmapp.cc:668:43: warning: binding dereferenced null pointer to reference has
undefined behavior
[-Wnull-dereference]
if (TEST_GRADIENT(dialogbackPixbuf == null) &&
^~~~
./ref.h:22:15: note: expanded from macro 'null'
#define null (*(class null_ref *)0)
^~~~~~~~~~~~~~~~~~~~
./ypaint.h:36:30: note: expanded from macro 'TEST_GRADIENT'
#define TEST_GRADIENT(Cond) (Cond)
^~~~
wmapp.cc:669:70: warning: binding dereferenced null pointer to reference has
undefined behavior
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list