Project

General

Profile

Actions

Bug #4547

closed

Build fails with clang-5.0

Added by Davide Pesavento over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

https://travis-ci.org/named-data/NLSR/jobs/352498816

../src/nlsr.cpp:168:19: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
    uri.canonize([this, then, currentNeighbor] (ndn::FaceUri canonicalUri) {
                  ^
../src/nlsr.cpp:174:8: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
      [this, then, currentNeighbor] (const std::string& reason) {
       ^
2 errors generated.
Actions #1

Updated by Ashlesh Gawande over 6 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Nicholas Gordon over 6 years ago

Well this one looks correct, actually. There isn't a use of 'this' in those lambdas--it compiles on clang 3.9.1. I wonder why the other compilers didn't complain about it.

Actions #3

Updated by Ashlesh Gawande over 6 years ago

  • Status changed from In Progress to Closed
  • Target version set to v0.5.0
  • % Done changed from 0 to 100
Actions #4

Updated by Saurab Dulal over 6 years ago

  • Target version changed from v0.5.0 to 0.4.3
Actions

Also available in: Atom PDF