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 clang 15 warnings #4325

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Fix clang 15 warnings #4325

merged 1 commit into from
Dec 14, 2022

Conversation

seelabs
Copy link
Collaborator

@seelabs seelabs commented Oct 19, 2022

Clang warns about the code removed in this patch with the following warning:

warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated]

@scottschurr
Copy link
Collaborator

Nit: the commit message contains a very long line. Consider wrapping the lines at 70 characters.

Copy link
Collaborator

@scottschurr scottschurr left a comment

Choose a reason for hiding this comment

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

👍 Changes look good. I'd prefer that the lines in the commit message were limited to 70 characters in length, but I won't hold up the pull request just for that.

Clang warns about the code removed in this patch with the warning:
```
warning: out-of-line definition of constexpr static data member is
redundant in C++17 and is deprecated [-Wdeprecated]
```
@seelabs
Copy link
Collaborator Author

seelabs commented Oct 20, 2022

@scottschurr Thanks for catching the long lines in the commit message. Fixed and force pushed. The only change in the force push was the shorting the lines in the commit messages.

Copy link
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

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

I didn't realize C++17 had made these redundant. But I'm glad, because they were really annoying. Thanks for the cleanup.

@intelliot intelliot added Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. Testable labels Dec 14, 2022
@intelliot intelliot merged commit 648d6c3 into XRPLF:develop Dec 14, 2022
dangell7 pushed a commit to Transia-RnD/rippled that referenced this pull request Mar 5, 2023
Clang warned about the code removed in this patch with the warning:
```
warning: out-of-line definition of constexpr static data member is
redundant in C++17 and is deprecated [-Wdeprecated]
```
tequdev pushed a commit to tequdev/rippled that referenced this pull request Nov 17, 2023
Clang warned about the code removed in this patch with the warning:
```
warning: out-of-line definition of constexpr static data member is
redundant in C++17 and is deprecated [-Wdeprecated]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. Testable
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants