Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on FreeBSD #426

Closed
wants to merge 3 commits into from
Closed

Fix build on FreeBSD #426

wants to merge 3 commits into from

Commits on May 27, 2019

  1. Copy the full SHA
    d8531d4 View commit details
    Browse the repository at this point in the history
  2. Fix build

    With Clang 6.0, I'm getting:
    similar/main/digiobj.cpp:581:25: error: lambda capture 'vcobjptr' is not required to be captured for this use [-Werror,-Wunused-lambda-capture]
                    const auto objp = [&vcobjptr, &s]{
                                        ^
    1 error generated.
    pkubaj committed May 27, 2019
    Copy the full SHA
    527ccdb View commit details
    Browse the repository at this point in the history
  3. Fix build with Clang 6.0

    similar/main/object.cpp:1060:13: error: lambda capture 'vmobjptr' is not required to be captured for this use [-Werror,-Wunused-lambda-capture]
        auto l = [&vmobjptr, &r, &num_to_free](bool (*predicate)(const vcobjptr_t)) -> bool {
                   ^
    similar/main/object.cpp:1511:32: error: lambda capture 'vmobjptr' is not required to be captured for this use [-Werror,-Wunused-lambda-capture]
                    const auto is_bad_kill = [&vmobjptr]{
                                               ^
    pkubaj committed May 27, 2019
    Copy the full SHA
    a471a11 View commit details
    Browse the repository at this point in the history