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 warnings in headers #655

Merged
merged 2 commits into from
May 10, 2018
Merged

Conversation

MarcelRaad
Copy link
Contributor

clang warns about C-style casts with -Wold-style-cast. It also warns about implicitly casting away const with -Wcast-qual. Fix both by removing unnecessary casts and converting the remaining ones to C++ casts.

Also remove an extra semicolon triggering a -Wextra-semi warning.

clang warns about them with -Wold-style-cast. It also warns about
implicitly casting away const with -Wcast-qual. Fix both by removing
unnecessary casts and converting the remaining ones to C++ casts.
@noloader noloader merged commit 7c1d296 into weidai11:master May 10, 2018
@noloader
Copy link
Collaborator

Thanks @MarcelRaad.

@MarcelRaad MarcelRaad deleted the clang_warnings branch May 11, 2018 06:15
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.

2 participants