[Bug 206650] x11/leechcraft: fix build with clang 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 26 18:56:15 UTC 2016


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

            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 at FreeBSD.org
          Reporter: dim at FreeBSD.org
          Assignee: vg at FreeBSD.org
             Flags: maintainer-feedback?(vg at FreeBSD.org)

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

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

/wrkdirs/usr/ports/x11/leechcraft/work/leechcraft-0.6.70/src/util/network/addresses.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 = { 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

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


More information about the freebsd-ports-bugs mailing list