Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 2016 18:56:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 206650] x11/leechcraft: fix build with clang 3.8.0
Message-ID:  <bug-206650-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 206650
           Summary: x11/leechcraft: fix build with clang 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: vg@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: vg@FreeBSD.org
             Flags: maintainer-feedback?(vg@FreeBSD.org)

Created attachment 166153
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D166153&action=
=3Dedit
Fix braced init lists for conforming to C++ N3922

During the exp-run in bug 206074, it was found that x11/leechcraft gives er=
rors
with a recent clang 3.8.0 snapshot [1]:

/wrkdirs/usr/ports/x11/leechcraft/work/leechcraft-0.6.70/src/util/network/a=
ddresses.cpp:44:4:
error: initializer for variable 'locals' with type 'const auto' contains
multiple expressions
                        QHostAddress::parseSubnet ("172.16.0.0/12"),
                        ^

and a number of similar errors.  This is because after the C++ Working Group
issue N3922, a C++11/14 braced initializer for more than one element should=
 be
prefixed by an assignment operator, e.g. instead of:

    auto foo { 1, 2, 3, 4 };

one should write:

    auto foo =3D { 1, 2, 3, 4 };

The attached patch changes the few initializers in leechcraft to conform to
this new syntax.  This fix should probably be upstreamed too.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR206074-default/2016-01-15_=
15h26m58s/logs/errors/leechcraft-0.6.70_7.log
[2] http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2014/n3922.html

--=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-206650-13>