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 a Clang 13 warning #2613

Merged
merged 1 commit into from Mar 2, 2022

Conversation

Nicholas-Baron
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization?
  • Documentation Update
  • Other: Remove a compiler warning

Description

-Wdeprecated-copy found this copy-assignment operator, which it
complains about. Since it is just = default, we should be able to
remove both it and the default constructor, leaving the struct as just its
data members.

Related Issues & Documents

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

@patrick96 patrick96 changed the base branch from master to hotfix/3.6.1 March 2, 2022 09:39
@patrick96 patrick96 force-pushed the fix_clang13_warning branch 2 times, most recently from cfb20b8 to b94c451 Compare March 2, 2022 09:43
`-Wdeprecated-copy` found this copy-assignment operator, which it
complains about. Since it is just `= default`, we should be able to
remove both it and the default constructor, making the struct just its
data members.
Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

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

Thanks :)

I changed the target branch to the hotfix branch for 3.6.1 so that we can get this into a release soon.

I also had to force push your branch

@patrick96 patrick96 merged commit 2322493 into polybar:hotfix/3.6.1 Mar 2, 2022
@Nicholas-Baron Nicholas-Baron deleted the fix_clang13_warning branch March 3, 2022 23:37
@patrick96 patrick96 mentioned this pull request Mar 5, 2022
14 tasks
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.

None yet

2 participants