Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 May 2018 16:16:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 227951] x11-wm/icewm: Does not build due to some C++11 compilation errors
Message-ID:  <bug-227951-7788-Ac0D0uKxS7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227951-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227951-7788@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=3D227951

w.schwarzenfeld@utanet.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |w.schwarzenfeld@utanet.at

--- Comment #1 from w.schwarzenfeld@utanet.at ---
It also fails on 10.4.  I got it to compile with USES=3D=20=20=20=20=20=20=
=20=20=20=20
compiler:c++11-lang in the Makefile and with clang50. It does not compile w=
ith
clang60.

With clang69 a lot of errors like=20
./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 =3D=3D 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 =3D=3D 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 =3D=3D 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 =3D=3D 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 =3D=3D 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 =3D=3D null) &&
                                        ^~~~
:./ref.h:22:15: note: expanded from macro 'null'
 #define null (*(class null_ref *)0)warning: binding dereferenced null poin=
ter
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 ma=
cro
'TEST_GRADIENT'

#define TEST_GRADIENT(Cond) (Cond)
                             ^~~~
wmapp.cc:665:66: warning: binding dereferenced null pointer to reference has
undefined behavior
      [-Wnull-dereference]
        (listbackPixmap =3D paths->loadPixmap(0, "listbg.xpm")) =3D=3D 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 =3D=3D 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

--=20
You are receiving this mail because:
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-227951-7788-Ac0D0uKxS7>