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 compile errors due to name-hiding and an unused function argument. #1006

Merged
merged 1 commit into from
Jan 13, 2019

Conversation

DanielaE
Copy link
Contributor

These problems are pointed out by clang-tidy and fail compilation on msvc at /W4 /WX.

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM, but please apply clang-format.

@@ -625,7 +625,7 @@ template <typename T> struct user_allocator {
return new value_type[cnt];
}

void deallocate(pointer p, size_type cnt) { delete[] p; }
void deallocate(pointer p, size_type /*cnt*/) { delete[] p; }
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd just remove the parameter instead of commenting out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great, wasn't sure about your policy regarding this. This is my preference as well.

These problems are pointed out by clang-tidy and fail compilation on msvc at /W4 /WX.

Signed-off-by: Daniela Engert <dani@ngrt.de>
@DanielaE
Copy link
Contributor Author

Done!

@vitaut vitaut merged commit e05dfb0 into fmtlib:master Jan 13, 2019
@vitaut
Copy link
Contributor

vitaut commented Jan 13, 2019

Merged, thanks!

@DanielaE DanielaE deleted the fix/compile-errors branch January 13, 2019 17:20
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