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

Add extra & pedantic warnings and fix the code #4491

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

ranisalt
Copy link
Member

Pull Request Prelude

Changes Proposed

Issues addressed: added -Wextra and, with that, found a few qualifiers that are discarded because adding const to a primitive return type is useless.

EPuncker
EPuncker previously approved these changes Jun 21, 2023
@ranisalt ranisalt changed the title Remove discarded qualifiers in return types Add extra & pedantic warnings and fix the code Jun 26, 2023
@ranisalt
Copy link
Member Author

Couldn't fix only 1 thing at once, so I added all warnings recommended by Jason Turner (except for -Wshadow, we do a LOT of that)

@ranisalt ranisalt merged commit 61452aa into otland:master Jun 27, 2023
Tofame added a commit to Tofame/TMS that referenced this pull request Sep 27, 2023
otland/forgottenserver#4491
Added commit by Ranisalt. Should fix fmt compilation issue.
@Codinablack Codinablack mentioned this pull request Mar 27, 2024
2 tasks
CyberfoxStudios pushed a commit to CyberfoxStudios/forgottenserver that referenced this pull request Apr 20, 2024
* Remove discarded qualifiers in return types

* Add more warnings and fix underlying enums
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