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 compilation with Clang 12 on Linux. #2191

Merged
merged 1 commit into from
Aug 6, 2021
Merged

Fix compilation with Clang 12 on Linux. #2191

merged 1 commit into from
Aug 6, 2021

Conversation

luis4a0
Copy link
Contributor

@luis4a0 luis4a0 commented Aug 5, 2021

Clang is picky with lambda captures.

@codecov
Copy link

codecov bot commented Aug 5, 2021

Codecov Report

Merging #2191 (3258c6a) into main (a130207) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2191   +/-   ##
=======================================
  Coverage   82.98%   82.98%           
=======================================
  Files         186      186           
  Lines        9730     9730           
=======================================
  Hits         8074     8074           
  Misses       1656     1656           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a130207...3258c6a. Read the comment docs.

Copy link
Collaborator

@ricab ricab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's a pain that we can't capture structured bindings (until C++20 I think). FWIW, you can still use regular vars, to conserve the names and avoid repeating get<> if you need them more than once:

    const auto& param = GetParam();
    const auto& expected_firewall = std::get<0>(param);
    ...

It's perhaps not too relevant here though, so accepting.

bors r+

bors bot added a commit that referenced this pull request Aug 5, 2021
2191: Fix compilation with Clang 12 on Linux. r=ricab a=luis4a0

Clang is picky with lambda captures.

Co-authored-by: Luis Peñaranda <luis.penaranda@canonical.com>
@bors
Copy link
Contributor

bors bot commented Aug 5, 2021

Build failed:

@Saviq
Copy link
Collaborator

Saviq commented Aug 5, 2021

bors retry

bors bot added a commit that referenced this pull request Aug 5, 2021
2191: Fix compilation with Clang 12 on Linux. r=ricab a=luis4a0

Clang is picky with lambda captures.

Co-authored-by: Luis Peñaranda <luis.penaranda@canonical.com>
@bors
Copy link
Contributor

bors bot commented Aug 5, 2021

Build failed:

@Saviq
Copy link
Collaborator

Saviq commented Aug 5, 2021

bors merge

bors bot added a commit that referenced this pull request Aug 5, 2021
2190: [firewall] Fix detection of nftables support in kernel r=Saviq a=townsend2010

Fixes #2183 

2191: Fix compilation with Clang 12 on Linux. r=Saviq a=luis4a0

Clang is picky with lambda captures.

Co-authored-by: Chris Townsend <christopher.townsend@canonical.com>
Co-authored-by: Luis Peñaranda <luis.penaranda@canonical.com>
@bors
Copy link
Contributor

bors bot commented Aug 5, 2021

Build failed (retrying...):

bors bot added a commit that referenced this pull request Aug 5, 2021
2191: Fix compilation with Clang 12 on Linux. r=Saviq a=luis4a0

Clang is picky with lambda captures.

Co-authored-by: Luis Peñaranda <luis.penaranda@canonical.com>
@bors
Copy link
Contributor

bors bot commented Aug 5, 2021

Build failed:

@Saviq
Copy link
Collaborator

Saviq commented Aug 6, 2021

bors r=ricab

bors bot added a commit that referenced this pull request Aug 6, 2021
2191: Fix compilation with Clang 12 on Linux. r=ricab a=luis4a0

Clang is picky with lambda captures.

Co-authored-by: Luis Peñaranda <luis.penaranda@canonical.com>
@bors
Copy link
Contributor

bors bot commented Aug 6, 2021

Build failed:

@ricab
Copy link
Collaborator

ricab commented Aug 6, 2021

Oh dear.

bors r+

bors bot added a commit that referenced this pull request Aug 6, 2021
2191: Fix compilation with Clang 12 on Linux. r=ricab a=luis4a0

Clang is picky with lambda captures.

Co-authored-by: Luis Peñaranda <luis.penaranda@canonical.com>
@bors
Copy link
Contributor

bors bot commented Aug 6, 2021

Build failed:

@luis4a0
Copy link
Contributor Author

luis4a0 commented Aug 6, 2021

Let's retry... there is a couple of combinations backend/platform which still didn't fail. Come on CI, go for it! 😂

@ricab
Copy link
Collaborator

ricab commented Aug 6, 2021

Sure, here goes

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 6, 2021

Build failed:

@Saviq Saviq merged commit ea7f2c3 into main Aug 6, 2021
@bors bors bot deleted the clang-12-linux branch August 6, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants